home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / os2 / programm / 7189 < prev    next >
Encoding:
Text File  |  1992-12-23  |  1.2 KB  |  32 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: Limiting behavior of sizing border
  5. Message-ID: <1992Dec23.204011.26686@panix.com>
  6. Date: Wed, 23 Dec 1992 20:40:11 GMT
  7. References: <ofBpSPK00WBL01sKsg@andrew.cmu.edu>
  8. Organization: PANIX Public Access Unix, NYC
  9. Lines: 21
  10.  
  11. In <ofBpSPK00WBL01sKsg@andrew.cmu.edu> sl31+@andrew.cmu.edu (Stephen M. Lacy) writes:
  12.  
  13.  
  14. >I've noticed some applications that make restrictions on the size of a
  15. >window while you resize it.  For example, when you have an OS/2 CMD.EXE
  16. >window open, and you go to resize it, during the resize, the resize
  17. >border will only go to multiples of the character size, if you know what
  18. >I mean.  I want to be able to do this in one of my programs, how is it
  19. >done?
  20.  
  21. Subclass the frame and intercept the WM_QUERYTRACKINFO message.
  22.  
  23. First call the old frame proc, then initialize the appropriate fields to the
  24. limiting sizes.
  25.  
  26. Cheers,
  27. Q
  28. -- 
  29. "If you choose not to decide, you  | "My other body is in the shop" - seen
  30.  still have made a choice" - Rush  |  on a T-shirt
  31. ------------------------------------------------------------------------
  32.