开发者

MFC Resizing dialog and child window paint problem

开发者 https://www.devze.com 2023-01-31 05:43 出处:网络
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, reve

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.


Try to add WS_CLIPCHILDREN style to the parent dialog.

0

精彩评论

暂无评论...
验证码 换一张
取 消