指定风格为竖着的,查一下MSDN中的说明

解决方案 »

  1.   

    净乱说,臭嘴
    用下面三个函数就行了
    +=======================
    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
    =+++++++++++++++++++++++++++++++++++
    总是内部服务器错误,总上帖不上来
      

  2.   

    总算帖上来了,害得我贴了不下20次
    最近CSDN的胶水不粘怎么的
      

  3.   

    VC自己提供了一个例子,你不如去看看,我做出来也大概是这个样子,还不一定猴年马月呢
    在VC光盘源码目录
    ...\VC_MFC\GENERAL\CTRLBARS
    看CPaletteBar类
      

  4.   

    add WARP attribtion, and limit width.
      

  5.   

    TOOLBAR 我明白了! 可是一个Rebar!呢!!用MFC 有谁知道呢!怎么设置!多谢了!
      

  6.   

    http://www.csdn.net/expert/topic/384/384792.shtm
      

  7.   

    to: jiangsheng(蒋晟)
    多谢
    可是 我还是不太明白! 你们说的方法我都试过了
    toolbar可以! 可是我的Rebar 就是不行!
    那个该死的东西老是死死的 贴在窗口的最上边 怎么改都不动,唯一能改变的是他的厚度!
    谁有例子啊! 
    可以发给我 多谢了!
    [email protected] 多谢了!
      

  8.   

    我靠! CSDN 现在的系统怎么这么烂!
    不是我不想给分!我发了好几次了!老是告诉我
    HTTP 500内部服务器错误!
    晚上在说吧!