-
September 5th, 2005, 11:26 PM
#1
ZOrder Problem with ToolBar WIN32
Hi
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.
Thanks!
Anant
-
September 5th, 2005, 11:35 PM
#2
Re: ZOrder Problem with ToolBar WIN32
Next time please post non-mFC questions in C++ and WinAPI forum.
How is the hierarchy ? Like below ?
Mainwindow
* 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
-
September 5th, 2005, 11:35 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|