home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / programm / 6365 < prev    next >
Encoding:
Text File  |  1992-11-12  |  1.5 KB  |  30 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!stanford.edu!rock!taco!garfield.catt.ncsu.edu!harris
  3. From: harris@garfield.catt.ncsu.edu (Michael Harris)
  4. Subject: Re: How Do You Calculate Menu Height?
  5. Message-ID: <harris.721581253@garfield.catt.ncsu.edu>
  6. Sender: news@ncsu.edu (USENET News System)
  7. Organization: North Carolina State University
  8. References: <tdukes.921111000734@hopper.ee.eng.auburn.edu>
  9. Date: Thu, 12 Nov 1992 15:14:13 GMT
  10. Lines: 18
  11.  
  12. tdukes@eng.auburn.edu (Todd J Dukes) writes:
  13.  
  14. >I am trying to calculate the size of the drawing area in a window. I 
  15. >can get the total size, but this seems to include the menu area. I 
  16. >thought about subtracting a constant size for the menu but when the user
  17. >makes the window narrower the menu may become two or more lines. Is there 
  18. >any way to find the current size (verticle height) of a window's menu? 
  19. >The only references I saw in the on-line documentation that comes with the 
  20. >beta OS/2 developer's toolkit is about returning the menu height in responce 
  21. >to a particular message.
  22.  
  23. Take a look at WinQueryWindowRect().  BTW, if you used WinCreateStdWindow()
  24. you shouldn't need to do this.  The Frame will resize the Client when it
  25. gets resized.  Are you perhaps using a dialog?
  26. ______________________________________________________________________________
  27.      Michael Harris - harris@catt.ncsu.edu or harris@carvm3.vnet.ibm.com
  28.  System Administrator, Computer & Technologies Theme Program, NC State Univ.
  29. (My opinions are my own and do not represent those of NCSU or IBM Corporation)
  30.