<ML****@hotmail .comwrote in message
news:11******** *************@7 5g2000cwc.googl egroups.com...
>I am creating various customized open file dialogs. When I display one
of my large dialogs followed by one of the smaller dialogs, you can see
the smaller dialog resize itself from the larger dialog's size. How
do I avoid this?
You ought to post again in the UI group
microsoft.publi c.win32.program mer.ui
That said, if you are using SetWindowPos() to move and size the dialog and
its children, one option is to switch to DefWindowPos() and add a call to
BeginDefWindowP os() before you start fiddling and EndDeferWindowP os() when
you are done. If you do that windows will see to it that the mimimum amount
of repainting is done.
You might also take a look at the WM_SETREDRAW message.
Regards,
Will