Article View: comp.os.ms-windows.programmer.misc
Article #2242Re: ToolBar under MDI application
From: Chris Marriott
Date: Thu, 21 Jan 1993 19:12
Date: Thu, 21 Jan 1993 19:12
28 lines
1784 bytes
1784 bytes
In article <dtam.727607040@sfu.ca> dtam@fraser.sfu.ca writes: >I have a toolbar implemented in my MDI application. However, my child windows >will ovelap the toolbar. Can anyone tell me how to resize the MDI client >windows so that it will not ovelapped with the toolbar. The MDI frame window is >the parent of both the toolbar window and the MDI client window!! > >e-mail or post to newsgroup is welcome!! > > The answer is to have the Toolbar window as a child of the FRAME window, not of the MDI client. All you have to do then is process the WM_SIZE message in the frame window proc, and resize/move the MDI client window yourself, rather than passing WM_SIZE on to DefFrameProc, which resizes the MDI client to fill the client area of the frame window. Best wishes, Chris -- -------------------------------------------------------------------------- | Chris Marriott | chris@chrism.demon.co.uk | | Warrington, UK | BIX: cmarriott | | | CIX: cmarriott | | Save the whales. Collect the whole set. | CompuServe: 100113,1140 | --------------------------------------------------------------------------
Technical Details
Message-ID:
<727643543snz@chrism.demon.co.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!chrism.demon.co.uk!chrisReferences:
<dtam.727607040@sfu.ca>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc From: chris@chrism.demon.co.uk (Chris Marriott) Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!chrism.demon.co.uk!chris Subject: Re: ToolBar under MDI application Distribution: world References: <dtam.727607040@sfu.ca> Organization: None Reply-To: chris@chrism.demon.co.uk X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19) Lines: 28 Date: Thu, 21 Jan 1993 19:12:23 +0000 Message-ID: <727643543snz@chrism.demon.co.uk> Sender: usenet@demon.co.uk