Location:
Search - bcmenu Pop-
Search list
Description: 在VCKBASE上读到《一种漂亮的自绘菜单》 [作者:郑恒 (lbird)]。应用到我的工程里后发现:文章中提到的效果能很好的实现。但是有一点不方便:需要映射 WM_DRAWITEM 和 WM_MEASUREITEM 消息才能实现自画功能。这对于一个基于对话框的工程或者仅仅需要弹出式菜单的工程来说很不方便-read "A beautiful painting from the menu" [Author : Zheng Heng (lbird)]. I applied to the project Lane found : The article referred to the good results can be achieved. But what is inconvenient : the need for mapping and WM_MEASUREITEM WM_DRAWITEM news can be achieved self-portrait function. This is a dialog based on the works or just need to pop-up menu, the works inconvenient
Platform: |
Size: 46080 |
Author: 张玉放 |
Hits:
Description: BCMenu::LoadMenu()对整个菜单作了处理.我注意到,如果菜单是弹出式的,那么不需要映射WM_DRAWITEM
和WM_MEASUREITEM就能实现自画功能.于是我在CMenuEx::LoadMenu()中重新构建了整个菜单,
把所有的子菜单创建为弹出式的菜单使用API函数::CreatePopupMenu()
-BCMenu :: LoadMenu () made a deal with the entire menu, I noticed that if the menu is a pop-up, then no mapping WM_DRAWITEM
And be able to achieve self-portrait function WM_MEASUREITEM So I CMenuEx :: LoadMenu () to re-build the entire menu,
All the sub-menu to create a pop-up menu to use the API function :: CreatePopupMenu ()
Platform: |
Size: 15360 |
Author: heye |
Hits: