Hi there, I'm trying to get a property sheet to center on the screen. Right now I create the property sheet then use SetWindowPos and some nifty calulations to center it using the returned handle. However it only returns the handle of the window after it has been displayed. So the property sheet sort of blinks on screen in the upper left then centers. Any ideas on a more proffessional way of doing this? Thanks, Ben
Posted on 2001-01-25 13:47:00 by cyberben
Can you create it invisible, size it, move it, then show it? Sorry, I never played with this API, that's just my general window trick. This message was edited by Iczelion, on 1/25/2001 8:06:26 PM
Posted on 2001-01-25 15:29:00 by Ernie
In the PROPSHEETHEADER structure, specify PSH_USECALLBACK flag in dwFlags member. Windows will call the function you placed in pfnCallback when the propertysheet is initialized.
Posted on 2001-01-25 20:01:00 by Iczelion