MFC feature pack toolbar use large icon and menu use regular icon

来源:互联网 发布:java 全角 半角 编辑:程序博客网 时间:2024/06/05 08:18

I call CMFCToolBar::SetMenuSizes before I call CMFCToolBar::CreateEx to create the toolbar. Then, instead of calling LoadToolBar I called LoadToolBarEx and passed to it a CMFCToolBarInfo struct which I left all NULL except for the m_uiMenuResID variable which I set to be the resource ID of my smaller icons.

Problem solved! =)) I now have a normal sized menu and a big chunky toolbar :P

 

最后的解决方法是建立一个toolbar用小图标的,然后和菜单关联起来。

原创粉丝点击