🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Positioning a Dialog Box

#2188
From: Hugh Molotsi
Date: Wed, 17 Apr 1991 18:19
12 lines
833 bytes
RE: How to re-position a dialog box at run time.

In your dialog box handler, when processing the WM_INITDIALOG message,
use the function:

	SetWindowsPos(hDlg, 0, xPos, yPos, 0, 0, SWP_NOSIZE | SWP_NOZORDER);

where xPos and yPos are the new dialog box coordinates.


------------------------------------------------------------------------------
How you gonna do it? You gonna OS/2 it!
Technical Details
Message-ID: <7850004@pollux.svale.hp.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpda!hpcuhc!pollux!hmolotsi
References: <7850002@pollux.svale.hp.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpda!hpcuhc!pollux!hmolotsi
From: hmolotsi@pollux.svale.hp.com (Hugh Molotsi)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Positioning a Dialog Box
Message-ID: <7850004@pollux.svale.hp.com>
Date: 17 Apr 91 18:19:37 GMT
References: <7850002@pollux.svale.hp.com>
Organization: Hewlett Packard CPCD, Sunnyvale CA
Lines: 12