Resizable CDialog Bar
-
Hello, I have a tabbed control with three tabs. Each tab has a tree control. Each one of these is its own dialog. I have the parent tabbed control dialog in a CDialog bar so that it can dock to the main window. I am trying to make this main CDialogBar resizable but it seems to be locked and will not resize. When I pass the parameter of CBRS_SIZE_DYNAMIC to the CDialogBar, and when I click on the barder of the dialog bar, the mouse will change to the mouse icon you get when you go to resize a window, but the CDialogBar boarder does not move so I do no get the WM_ONSIZE message. Any suggestions on how I can get my CDialogBar to resize? I have some code at the bottom, this is how I am making my CDialogBar. Thanks, Shane m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY); EnableDocking(CBRS_ALIGN_ANY); DockControlBar(&m_wndToolBar); m_wndDialogBar.Create(this,IDD_DISPLAYDIALOG, WS_VISIBLE|WS_CHILD|CBRS_LEFT|CBRS_SIZE_DYNAMIC, 1); m_wndDialogBar.SetWindowText("Display Control"); m_wndDialogBar.SetBarStyle(m_wndDialogBar.GetBarStyle() | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC); //| CBRS_SIZE_DYNAMIC m_wndDialogBar.EnableDocking(CBRS_ALIGN_RIGHT|CBRS_ALIGN_LEFT); DockControlBar(&m_wndDialogBar); m_wndDialogBar.DelayShow(FALSE);