Flicker in Custom Common Dialog

  • Thread starter Thread starter MLM450
  • Start date Start date
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.
 
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
 
Back
Top