Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / August 2006

Tip: Looking for answers? Try searching our database.

Flicker in Custom Common Dialog

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MLM450@hotmail.com - 14 Aug 2006 20:10 GMT
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.
William DePalo [MVP VC++] - 15 Aug 2006 03:27 GMT
>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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.