CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2005
    Pune (India)

    Thumbs up ZOrder Problem with ToolBar WIN32

    I am facing problem with ZOreder of toolBar i have mainwindow , ToolBar, ChildWindow, and i have created toolbar using createToolBarEx ,

    My problem is that , when i move child window towards titlebar it overlapps my toolBar but not Menu, I am not getting the point where i am wrong where both winndow child, toolbar , have same parent.

    again how 0,0 coordinate of client area goes on toolBar why it is so.

    I am using Win32 API not Mfc.

  2. #2
    Join Date
    Feb 2000
    San Diego, CA

    Re: ZOrder Problem with ToolBar WIN32

    Next time please post non-mFC questions in C++ and WinAPI forum.

    How is the hierarchy ? Like below ?
    * ToolBar
    * ChildWindow

    If so, that is bound to happen, because there is no restricting the child window because child window is entitled to whole of the mainwindow and so does toolbar window.

    What you could do is, create toolbar as child of main window. Create another dummy window as child of mainwindow which occupies all space apart from toolbar space. Create ChildWindow as child of this dummy window

  3. #3
    Join Date
    Jul 2004

    Re: ZOrder Problem with ToolBar WIN32

    I am sorry to say, but it is hard to understand your English.

    Usually, a childwindow is behind the toolbar,
    and the childwindow is behind the menu too.

    This is because the toolbar is created in CMainFrame.
    And the menu belongs to CMainFrame too.

    Could you please explain in detail.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)