Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Resizable CDialog Bar

Resizable CDialog Bar

Scheduled Pinned Locked Moved C / C++ / MFC
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SRogers88
    wrote on last edited by
    #1

    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);

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups