OutlookBar控件中按钮响应问题

ink_hoo 2017-09-30 02:19:52


如图,鼠标滑到字体,左边会出现一个图标。左边图标可以点击,右边的不行。MainFrm.cpp部分代码如下:
void CMainFrame::InitializeOutlookBar(){

// Create the image lists used by the outlook bar.
m_ImageLarge.Create(48, 48, ILC_COLOR32 | ILC_MASK, 2, 2);
for (int i = 0; i<5; i++) {
m_ImageLarge.Add(AfxGetApp()->LoadIcon(nIcons[i]));
}

int iFolder;//folder索引

// set the image lists for the outlook bar.
m_wndOutlookBar.SetImageList(&m_ImageLarge, OBS_XT_LARGEICON);

// Add items to the Outlook Bar control.
// Add the first folder to the outlook bar.
iFolder = m_wndOutlookBar.AddFolder(_T("记录管理"), 0);
m_wndOutlookBar.InsertItem(iFolder, 0, _T("高层管理"), 0, NULL);
m_wndOutlookBar.InsertItem(iFolder, 1, _T("记录算理"), 1, NULL);

m_wndOutlookBar.SetOwner(this);

}
...全文
183 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ink_hoo 2017-09-30
  • 打赏
  • 举报
回复
问题原因还是没找到,重新导入一遍又对了。很无奈
赵4老师 2017-09-30
  • 打赏
  • 举报
回复
图标文件格式问题。我猜。

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧