home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / programm / 6382 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  1.5 KB

  1. Path: sparky!uunet!know!cass.ma02.bull.com!mips2!news.bbn.com!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!ames!kronos.arc.nasa.gov!iscnvx!netcomsv!netcom.com!daveb
  2. From: daveb@netcom.com (Dave Briccetti)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: How Do You Calculate Menu Height?
  5. Message-ID: <1992Nov13.005212.2031@netcom.com>
  6. Date: 13 Nov 92 00:52:12 GMT
  7. References: <tdukes.921111000734@hopper.ee.eng.auburn.edu>
  8. Organization: Dave Briccetti & Assoc., OS/2 Consulting
  9. Lines: 24
  10.  
  11. tdukes@eng.auburn.edu (Todd J Dukes) writes:
  12. : I am trying to calculate the size of the drawing area in a window. I 
  13. : can get the total size, but this seems to include the menu area. I 
  14. : thought about subtracting a constant size for the menu but when the user
  15. : makes the window narrower the menu may become two or more lines. Is there 
  16. : any way to find the current size (verticle height) of a window's menu? 
  17. : The only references I saw in the on-line documentation that comes with the 
  18. : beta OS/2 developer's toolkit is about returning the menu height in responce 
  19. : to a particular message.
  20.  
  21. Are you trying to calculate the size of a client window for a frame
  22. window?  Did you look at WinCalcFrameRect?
  23.  
  24. If you are just drawing in a client window, there is no menu there.  Let
  25. the frame worry about sizing the client and the menu and other controls.
  26.  
  27. It's not clear what you are trying to do.
  28.  
  29. -- 
  30.  
  31. Dave Briccetti, Owner, Dave Briccetti & Associates
  32. OS/2 Developer/Consultant
  33. P.O. Box 1713
  34. Lafayette, CA  94549-7013
  35.