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
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
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.