|
-
Jan 9th, 2002, 12:24 PM
#1
Thread Starter
Member
toolbar on mdi frame window
How do you place a toolbar window on a MDI frame window and prevent the MDIClient window from covering up the toolbar?
Initially I tried handling the main frame's WM_SIZE message, and using SetWindowPos to move the MDIClient window into the appropriate position to compensate for the toolbar. While this works, I can't help but feel it's not the right way. Also, using the afore mentioned method, sometimes the toolbar does not paint correctly and the MDIClient can be seen on its' background.
In VB, when you place a toolbar control (or any other Alignable control) on a MDIForm, it automatically adjusts the MDIClient accordingly. This method does not appear to be using any subclassing either (at least not according to Spy++). Is this some kind of OLE thing?
Any help would be appreciated.
BTW- I am not using any MFC
-
Jan 9th, 2002, 01:14 PM
#2
I think you somehow have to tell the MDIClient that the usable size of your frame has changed.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
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
|