🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #3227

Re: Help with Dialog Boxes

#3227
From: Paul Bonneau
Date: Thu, 13 Jun 1991 18:38
24 lines
1450 bytes
In article <1991Jun11.172122.24210@linus.mitre.org> dsb@mbunix.mitre.org writes:
>Given that I can get the rect of the client area of a variable sized parent
>window.
>
>Is it possible to create a modeless dialog box and RfitS the dialog box to the
>parentUs client area ? I would like to do this before I call DialogBox() or
>immediately afterwards.
>
>Is it possible to change the size of a dialog box from an .rc file at all ? 
>
A dialog box is really just a popup window.  So you can
change its size no problem--MoveWindow() or SetWindowPos()
work just fine.  The WM_INITDIALOG case is a good time to do
this.

However, if you are shrinking the dialog from its defined
size in the resource file, you will likely end up clipping
some controls (child windows of the dialog).  So be prepared
to start resizing controls as well.  This is not always easy
either, since some controls will have a minimum size, for
example a PushButton will not look nice if it is made too
small to fit its title.

cheers - Paul Bonneau.
Technical Details
Message-ID: <1991Jun13.183807.24270@hyper.hyper.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!hyper.hyper.com!bonneau
References: <1991Jun11.172122.24210@linus.mitre.org>

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.ms.programmer
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!hyper.hyper.com!bonneau
From: bonneau@hyper.hyper.com (Paul Bonneau)
Subject: Re: Help with Dialog Boxes
Message-ID: <1991Jun13.183807.24270@hyper.hyper.com>
Reply-To: bonneau@hyper.UUCP (Paul Bonneau,,)
Organization: HyperCube Inc.
References: <1991Jun11.172122.24210@linus.mitre.org>
Date: Thu, 13 Jun 1991 18:38:07 GMT