请各位大侠指教,WIN的画图程序中那个面板用的是工具栏还是非模式对话框 
是怎么做出来的啊

解决方案 »

  1.   

    是工具栏,用ToolBar就可以作出来的!!
      

  2.   

    不是Toolbar,用Spy++可以探测出来,
    不过Toolbar也可以作出来
      

  3.   

    是DialogBar  继承关系:CDialogBar<-CControlBar<-CWnd
    步骤:
    1.首先在资源中建立以对话框 Styles中设置:style=child,border=none
    2.在CMainFrame中建立变量m_wndPaintBar
    3.
    int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
    {
       .......  if (!m_wndPaintBar.Create(this,                                             WS_CHILD|WS_VISIBLE|CBRS_SIZE_FIXED|CBRS_GRIPPER|CBRS_LEFT|CBRS_TOOLTIPS, 0x1208) ||!m_wndPaintToolBar.LoadToolBar(IDR_PAINTTOOL))
    {
    TRACE0("Failed to create toolbar\n");
    return -1;       // fail to create
    } m_wndPaintBar.SetWindowText(_T("工具箱"));
    m_wndPaintBar.EnableDocking(CBRS_ALIGN_LEFT|CBRS_ALIGN_RIGHT);
    DockControlBar(&m_wndPaintBar);  .....
    }