home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / mswindo / programm / misc / 4550 < prev    next >
Encoding:
Internet Message Format  |  1993-01-02  |  1.8 KB

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