home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.ms-windows.programmer.misc:4550 comp.lang.pascal:7814
- Newsgroups: comp.os.ms-windows.programmer.misc,comp.lang.pascal
- Path: sparky!uunet!gatech!usenet.ins.cwru.edu!wariat!sjsobol
- From: sjsobol@wariat.org (Steven J. Sobol)
- Subject: Re: toolbar and mdi window. Never mind.
- Message-ID: <1993Jan3.032416.18389@wariat.org>
- Followup-To: comp.os.ms-windows.programmer.misc,comp.lang.pascal
- Organization: APK Public Access Unix * Cleveland, OH
- X-Newsreader: TIN [version 1.1 PL7]
- References: <1993Jan2.183337.22537@wariat.org>
- Date: Sun, 3 Jan 1993 03:24:16 GMT
- Lines: 28
-
- Steven J. Sobol (sjsobol@wariat.org) wrote:
-
- : I have a package I picked up off wuarchive.wustl.edu called TOOLPA.ZIP.
- : It is a demo from a commercial prototyping program, and it lets you create
- : a toolbar in Turbo Pascal. It works fine in non-MDI windows. In MDI windows,
- : I turn off the wb_MDIChild flag so I don't get the caption and system menu
- : enclosing the toolbar. However, I can't get it to respond to any mouse clicks
- : if I don't have wb_MDIChild set. How can I get a non-MDI child window in an
- : MDI frame window to respond to mouse clicks?
-
- I figured it out. You must adjust the client area so that the toolbar is not
- inside it. The two programs I found which adjust the client area do so in
- response to a WM_SIZE message.
-
- : Oh yeah... the toolbar does not respond to paint events, either.
-
- Actually, when I get a WM_SIZE, I do an InvalidateRect on the toolbar
- and one on the MDI window and everything gets repainted just fine.
-
- Sorry.
-
- --
- Steve Sobol Head Cheerleader, APK Public Access *nix/Internet
- (216) 481-9436 <2400 baud> (216) 481-9425 <v.32bis, TurboPEP>
- Telnet: wariat.org To register: send e-mail to info@wariat.org, or
- log in to BBS and download file 'user.new' from file area 2.
-
- Also President of The Tiny Software Co. E-Mail Address: sjsobol@tiny.com
-