Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Resizing dialog and child window paint problem Collapse All
Subject Author Date
Janusz Sołtysiak Dec 15, 2010 - 6:42 AM


When I resize parent dialog (resizing border), child dialog is not painting correctly. Child dialog is partially hidden behind the border of parent dialog. If i make dialog bigger, revealed part of child dialog isn’t painted. But when i make it even bigger, child dialog paints to the previous border position. I tried my best with invalidating and redrawing dialogs but I can’t make it appear correctly.

Thanks in advance for your help.

Technical Support Dec 15, 2010 - 11:16 AM

If your child dialog uses the WS_CLIPSIBLINGS style and your parent dialog uses the WS_CLIPCHILDREN style, repainting should be performed automatically. To redraw the inner content of your parent dialog manually you should use the RedrawWindow() API with the RDW_ALL_CHILDREN flag.