Newsgroups: comp.windows.ms.programmer Path: 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 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.