Article View: comp.os.os2.programmer
Article #1864Re: How Do You Calculate Menu Height?
From: Michael Harris
Date: Thu, 12 Nov 1992 15:14
Date: Thu, 12 Nov 1992 15:14
18 lines
1581 bytes
1581 bytes
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.
Take a look at WinQueryWindowRect(). BTW, if you used WinCreateStdWindow()
you shouldn't need to do this. The Frame will resize the Client when it
gets resized. Are you perhaps using a dialog?
______________________________________________________________________________
Michael Harris - harris@catt.ncsu.edu or harris@carvm3.vnet.ibm.com
System Administrator, Computer & Technologies Theme Program, NC State Univ.
(My opinions are my own and do not represent those of NCSU or IBM Corporation)
Technical Details
Message-ID:
<harris.721581253@garfield.catt.ncsu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!rock!taco!garfield.catt.ncsu.edu!harrisReferences:
<tdukes.921111000734@hopper.ee.eng.auburn.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!rock!taco!garfield.catt.ncsu.edu!harris From: harris@garfield.catt.ncsu.edu (Michael Harris) Subject: Re: How Do You Calculate Menu Height? Message-ID: <harris.721581253@garfield.catt.ncsu.edu> Sender: news@ncsu.edu (USENET News System) Organization: North Carolina State University References: <tdukes.921111000734@hopper.ee.eng.auburn.edu> Date: Thu, 12 Nov 1992 15:14:13 GMT Lines: 18