净乱说,臭嘴 用下面三个函数就行了 +======================= CFrameWnd::EnableDocking void EnableDocking( DWORD dwDockStyle );ParametersdwDockStyleSpecifies which sides of the frame window can serve as docking sites for control bars. It can be one or more of the following: 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 +=================================== CControlBar::EnableDocking void EnableDocking( DWORD dwStyle );ParametersdwStyleSpecifies 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: 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 +============================== CFrameWnd::DockControlBar void DockControlBar( CControlBar * pBar, UINT nDockBarID = 0, LPCRECT lpRect = NULL );ParameterspBarPoints to the control bar to be docked.nDockBarIDDetermines which sides of the frame window to consider for docking. It can be 0, or one or more of the following: AFX_IDW_DOCKBAR_TOP Dock to the top side of the frame window. AFX_IDW_DOCKBAR_BOTTOM Dock to the bottom side of the frame window. AFX_IDW_DOCKBAR_LEFT Dock to the left side of the frame window. AFX_IDW_DOCKBAR_RIGHT Dock to the right side of the frame window. If 0, the control bar can be docked to any side enabled for docking in the destination frame window =+++++++++++++++++++++++++++++++++++ 总是内部服务器错误,总上帖不上来
用下面三个函数就行了
+=======================
CFrameWnd::EnableDocking
void EnableDocking( DWORD dwDockStyle );ParametersdwDockStyleSpecifies which sides of the frame window can serve as docking sites for control bars. It can be one or more of the following: 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
+===================================
CControlBar::EnableDocking
void EnableDocking( DWORD dwStyle );ParametersdwStyleSpecifies 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: 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
+==============================
CFrameWnd::DockControlBar
void DockControlBar( CControlBar * pBar, UINT nDockBarID = 0, LPCRECT lpRect = NULL );ParameterspBarPoints to the control bar to be docked.nDockBarIDDetermines which sides of the frame window to consider for docking. It can be 0, or one or more of the following: AFX_IDW_DOCKBAR_TOP Dock to the top side of the frame window.
AFX_IDW_DOCKBAR_BOTTOM Dock to the bottom side of the frame window.
AFX_IDW_DOCKBAR_LEFT Dock to the left side of the frame window.
AFX_IDW_DOCKBAR_RIGHT Dock to the right side of the frame window.
If 0, the control bar can be docked to any side enabled for docking in the destination frame window
=+++++++++++++++++++++++++++++++++++
总是内部服务器错误,总上帖不上来
最近CSDN的胶水不粘怎么的
在VC光盘源码目录
...\VC_MFC\GENERAL\CTRLBARS
看CPaletteBar类
多谢
可是 我还是不太明白! 你们说的方法我都试过了
toolbar可以! 可是我的Rebar 就是不行!
那个该死的东西老是死死的 贴在窗口的最上边 怎么改都不动,唯一能改变的是他的厚度!
谁有例子啊!
可以发给我 多谢了!
[email protected] 多谢了!
不是我不想给分!我发了好几次了!老是告诉我
HTTP 500内部服务器错误!
晚上在说吧!