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. CControlBars always on top of CMDIChildWnd

CControlBars always on top of CMDIChildWnd

Scheduled Pinned Locked Moved C / C++ / MFC
c++comhelptutorialquestion
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.
  • N Offline
    N Offline
    Niklas L
    wrote on last edited by
    #1

    I have some control bars (CDialogBar actually, but the problem is the same for all CControlBar derived classes) owned by my CMDIChildWnd derived class. These control bars contains document specific data. The problem I can't seem to find a solution to is when one of these control bars is in a floating state and I have more than one document open. The floating control bar is alway on top of all CMDIChildWnd derived windows, making it difficult to know to which it actually belongs. (This can be easily tested by just adding the toolbar from the CMainFrame to the CChildFrame class and opening a few document windows and let a toolbar float.) The behaviour I'd like to see is that the control bar should be on top of its owning CMDIChildWnd, but below any other CMDIChildWnd that might be in front of it. Does anyone have a clue how to do this? I have tried SetWindowPos(&my_child_frame,...) in various places without any luck. Maybe I could set the window style of the CMiniFrameWnd somehow? Any ideas would be appreciated. I run MFC (obviously) and VS2003, though I doubt that matters.

    home

    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