Article View: comp.windows.ms.programmer
Article #2168Re: Positioning a Dialog Box
From: Paul Bonneau
Date: Wed, 17 Apr 1991 22:57
Date: Wed, 17 Apr 1991 22:57
10 lines
929 bytes
929 bytes
In article <7850002@pollux.svale.hp.com> kevino@pollux.svale.hp.com (Kevin Owen) writes: >How can I display a dialog box at a position that I specify at run time? It >seems that the dialog editor hard codes an X and Y location. Is there any >way to override these values? Word for Windows and other windows apps >display dialog boxes centered on the screen. How do they do that?? > When your dialog proc gets the WM_INITDIALOG message, use MoveWindow() to position it to the desired location. cheers - Paul Bonneau.
Technical Details
Message-ID:
<1991Apr17.225719.2221@hyper.hyper.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!hyper.hyper.com!bonneauReferences:
<7850002@pollux.svale.hp.com>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: Positioning a Dialog Box Message-ID: <1991Apr17.225719.2221@hyper.hyper.com> Reply-To: bonneau@hyper.UUCP (Paul Bonneau,,) Organization: HyperCube Inc. References: <7850002@pollux.svale.hp.com> Date: Wed, 17 Apr 1991 22:57:19 GMT