🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools.owl
Article #53

Retreive menu width from TFrameWindow

#53
From: actech1
Date: Fri, 23 Jul 1999 00:00
14 lines
1329 bytes
I have a TFrameWindow with an assigned menu. wfShrinkToClient causes the
window to shrink smaller than the menu width. (The Window is otherwise
empty).

I can hard code a width and it will work fine. However, when used on a
higher resolution display, part of the menu is chopped off on the right
side. I suspect this is caused by the fixed pixel width and the Menu
using a greater number of pixels to maintain the large font size.

Is there a way to retreive the desired menu width so that I can use this
to resize the window dynamically


tia
Technical Details
Message-ID: <3797B4F8.1F8317A7@home.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fe201,6790accafd3bcc69,start
X-Google-Attributes: gidfe201,public
X-Google-Thread: 108ebe,6790accafd3bcc69,start
X-Google-Attributes: gid108ebe,public
From: actech1 <actech1@home.com>
Subject: Retreive menu width from TFrameWindow
Date: 1999/07/23
Message-ID: <3797B4F8.1F8317A7@home.com>
X-Deja-AN: 504211158
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@home.net
X-Trace: news.rdc1.il.home.com 932689166 24.2.197.94 (Thu, 22 Jul 1999 17:19:26 PDT)
Organization: @Home Network
MIME-Version: 1.0
NNTP-Posting-Date: Thu, 22 Jul 1999 17:19:26 PDT
Newsgroups: comp.os.ms-windows.programmer.tools.owl,borland.public.cpp.owl