CPropertySheet添加菜单(Windows Mobile)
如题!!通过如下方法
CCommandBar m_wndCommandBar; // 在.h文件中
m_wndCommandBar.Create(this); //在.cpp文件中
m_wndCommandBar.InsertMenuBar(IDR_MAINFRAME);
可以在对话框中实现菜单,但在CPropertySheet中却怎么也显示不了,请问如何实现
--------------------编程问答-------------------- 有哪位老大知道,请告知一下 --------------------编程问答-------------------- 暂时搞定了,不完美.
添加工具栏菜单不能在属性框cpropertysheet里面做,需要在属性页面里做.因为我发现在对话框里添加菜单是可以的,而属性页也是对话框,所以就决定在属性页里加,没想到居然可以,只是这么一来,我需要在所有的页里里重复相同的工作:
CCommandBar m_wndCommandBar; // 在.h文件中
m_wndCommandBar.Create(this); //在.cpp文件中
m_wndCommandBar.InsertMenuBar(IDR_MAINFRAME); //指定你自己的菜单
补充:移动开发 , Windows Phone