Flicker in Custom Common Dialog

M

MLM450

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? I am resizing the dialog in response to the Init
Dialog message and customizing in the window in response to the Init
Done notification message.
 
W

William DePalo [MVP VC++]

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.public.win32.programmer.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
BeginDefWindowPos() before you start fiddling and EndDeferWindowPos() 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top