home *** CD-ROM | disk | FTP | other *** search
- 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
- From: daveb@netcom.com (Dave Briccetti)
- Newsgroups: comp.os.os2.programmer
- Subject: Re: How Do You Calculate Menu Height?
- Message-ID: <1992Nov13.005212.2031@netcom.com>
- Date: 13 Nov 92 00:52:12 GMT
- References: <tdukes.921111000734@hopper.ee.eng.auburn.edu>
- Organization: Dave Briccetti & Assoc., OS/2 Consulting
- Lines: 24
-
- tdukes@eng.auburn.edu (Todd J Dukes) writes:
- : I am trying to calculate the size of the drawing area in a window. I
- : can get the total size, but this seems to include the menu area. I
- : thought about subtracting a constant size for the menu but when the user
- : makes the window narrower the menu may become two or more lines. Is there
- : any way to find the current size (verticle height) of a window's menu?
- : The only references I saw in the on-line documentation that comes with the
- : beta OS/2 developer's toolkit is about returning the menu height in responce
- : to a particular message.
-
- Are you trying to calculate the size of a client window for a frame
- window? Did you look at WinCalcFrameRect?
-
- If you are just drawing in a client window, there is no menu there. Let
- the frame worry about sizing the client and the menu and other controls.
-
- It's not clear what you are trying to do.
-
- --
-
- Dave Briccetti, Owner, Dave Briccetti & Associates
- OS/2 Developer/Consultant
- P.O. Box 1713
- Lafayette, CA 94549-7013
-