home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / programm / 7312 < prev    next >
Encoding:
Text File  |  1993-01-04  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!psinntp!panix!os2man
  3. From: os2man@panix.com (Larry Salomon Jr.)
  4. Subject: Re: Minimized Dialog Box weirdness
  5. Message-ID: <C0CFyn.3Mz@panix.com>
  6. Organization: PANIX Public Access Unix, NYC
  7. References: <1993Jan04.131100.20139@kub.nl>
  8. Date: Mon, 4 Jan 1993 19:11:11 GMT
  9. Lines: 23
  10.  
  11. In <1993Jan04.131100.20139@kub.nl> hoppie@kub.nl (Jeroen Hoppenbrouwers) writes:
  12.  
  13. >Hello,
  14.  
  15. >Does anybody know what an application that uses a dialog box is supposed
  16. >to do when the box is minimized by the user? When I do this, the box
  17. >dissapears and the icon appears, which is fine, but then the lower-left
  18. >corner of the dialog box is re-painted over the icon. I can capture
  19. >the MINMAXFRAME message which indicates this minimize event, but:
  20.  
  21. >A) Should I turn off painting the box myself or should PM do this for me;
  22. >B) If I have to do it myself, what is the best way?
  23.  
  24. Since dialog boxes were not meant to minimized, you'll need to trap the
  25. WM_MINMAXFRAME message and hide any child windows in the rectangle
  26. (0,0)-(SV_CXICON,SV_CYICON) if you're being minimized and show them if not.
  27.  
  28. Cheers,
  29. Q
  30. -- 
  31. "If you choose not to decide, you  | "My other body is in the shop" - seen
  32.  still have made a choice" - Rush  |  on a T-shirt
  33. ------------------------------------------------------------------------
  34.