有一类CAcUiDockControlBar中一成员函数:
virtual BOOL
AddCustomMenuItems( LPARAM hMenu); hMenu Handle of the context menu contained in the low order WORDCalled by the docking system before the context menu of the control bar is displayed, to give you the opportunity to add your own menu options, and/or to remove the existing default menu options. There are two default menu options:
ID_ADUI_ALLOWDOCK: (Value 1). This command allows the user to enable/disable the docking capability of the control bar. If disabled, the control bar is made floating and cannot be docked.
ID_ADUI_HIDEBAR: (Value 2). This command hides the control bar, or closes it if the flag ADUI_DOCK_DESTROY_ON_CLOSE is set when you construct your control bar.Make sure that the custom options you will add to the context menu will not have one of the two values above.请问该怎样用它?(别笑俺先,俺很菜的噢)
virtual BOOL
AddCustomMenuItems( LPARAM hMenu); hMenu Handle of the context menu contained in the low order WORDCalled by the docking system before the context menu of the control bar is displayed, to give you the opportunity to add your own menu options, and/or to remove the existing default menu options. There are two default menu options:
ID_ADUI_ALLOWDOCK: (Value 1). This command allows the user to enable/disable the docking capability of the control bar. If disabled, the control bar is made floating and cannot be docked.
ID_ADUI_HIDEBAR: (Value 2). This command hides the control bar, or closes it if the flag ADUI_DOCK_DESTROY_ON_CLOSE is set when you construct your control bar.Make sure that the custom options you will add to the context menu will not have one of the two values above.请问该怎样用它?(别笑俺先,俺很菜的噢)
解决方案 »
- 求助:动态画曲线不再更新的问题
- GDI+能否实现GDI中SetMapMode(MM_HIMETRIC)功能
- 懂USB的请进: 怎么样区分Windows系统里的多个U盘(USB设备)?
- 什么错误,请指教!
- 高手快回答呀不知道怎么处理这样的问题呀!!
- .net安装求助!
- 请会些IE接口编程的人过来帮帮忙!!回答出来,300分相送!!!!
- 如何让画出来的多边形透明?
- san(sans)分数给了,能再说说吗?比如如何利用我编好的连接文件
- 在另一个进程中插入一个DLL,如何利用它得到这个进程的菜单资源以及把相应的菜单命令映射到DLL中定义的函数上呢?
- 需要把窗体背景颜色改变 怎么去实现!
- 急切请教:如何获取服务器IP地址和端口?在线等待
menu.aaa = "";
menu.bbb = 1232;
...
AddCustomMenuItems(&menu);