Path: 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 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!