要想工具栏变成飘浮在主窗口,不系甘用的,如有兴趣请与wealth联系。
解决方案 »
- CEdit控件的问题。。。
- ActiveX Gdi+的问题,不知有人碰到过没?着急啊!
- 得到ClistCtrl中选中列的值。
- 菜鸟求助如何在VC++6.0中实现调色板
- ListCtrl的删除问题
- 最近总觉得工作没出息,写各共享软件呆着等机会
- 有两个非常专业性的大问题(对于程序员和高级程序员来说),请大家广泛发表意见,从中可显高手能力。
- Ado访问Sql server2000使用Index问题,急急急!!!(高分奉送)在线等待
- 求助!VS2013 fatal error RC1015
- 我怎么觉得《COM原理与应用》这本书讲得有点简略,有的地方讲的不太好懂。
- (MFC)我想把视图中增加滚动条功能,怎么办?
- 怎样在字符串中展开宏?
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(m_wndToolBar);
将以上都注释掉
然后重新创建一个,
不知行不行,呵呵
To chengbuaa: 我也发现了~~但不知道为什么?尤其是它的拖动问题, 绝对有毛病`~~~
上面的都不好, 告诉我EMAIL吧
我跟踪源码N小时,终于帮你搞定了!
[email protected]
也给我你的E-mail吧, 以后有问题先问你了~~~
可废了我不少心血。
这是为了用来处理ToolBar的Dockable
我也正在看afxpriv.h中的各个类, 可惜Msdn里没有~~~~
CDockContext不能直接构造类变量, 难道为了"停靠"还要重载这个类才能实现吗?我不太明白~~~
你就知道了,
我主要的处理就是在禁止了他的StartDrag函数
有问题,写EMAIL
联系吧
Specifies whether the control bar supports docking and the sides of its parent window to which the control bar can be docked, if supported. Can be one or more of the following flags:
CBRS_ALIGN_TOP Allows docking at the top of the client area.
CBRS_ALIGN_BOTTOM Allows docking at the bottom of the client area.
CBRS_ALIGN_LEFT Allows docking on the left side of the client area.
CBRS_ALIGN_RIGHT Allows docking on the right side of the client area.
CBRS_ALIGN_ANY Allows docking on any side of the client area.
CBRS_FLOAT_MULTI Allows multiple control bars to be floated in a single mini-frame window.
If zero, that is, indicating no flags, the control bar does not dock.
----------------------------------
好像只要传0进去就可以了
我要分分!
我要分分!