Code Comments
Programming Forum and web based access to our favorite programming groups.Turn off the WS_EX_APPWINDOW style for your dialog, an excellent article on this is: http://msdn.microsoft.com/msdnmag/issues/0500/c/ "JohnL" wrote: > I am writing a Win32 GUI dialog-based application with Visual C++ 6.0. The > application is composed of a few tens of dialogs. > > To speed the switch between different dialogs, I keep the dialogs in the > memory but deleting them when they are not active, and only the active > dialog is displayed as the current window. To give more details, after eac h > dialog is created by DoModal() when it is called at the first time, and on ce > another dialog gets the con, the current dialog will just minimize and hid e > (by SetWindowPos) itself but delete itself (by OnCancel), so it will be > still in the memory. The next time it turns into active it will call > ShowWindow (SW_SHOW) to display itself. > > One problem I met can be decsribed as: once a new dialog is created by the > application using DoModal(), an item will be added to the Window Task List > Bar, and item could not be removed even the corresponding dialog already > turns into inactive. So soon the Window Task List Bar becomes very crowded > but actually only the last item is useful. Anybody can help solve the > problem? > > Thanks in advance. > > John > > >
Post Follow-up to this messageThank you very much, it solved my problem. John "TH" <TH@discussions.microsoft.com> wrote in message news:09C65A0B-8AC0-4331-94B5-EBD4D7FA4A50@microsoft.com... > Turn off the WS_EX_APPWINDOW style for your dialog, an excellent article on > this is: http://msdn.microsoft.com/msdnmag/issues/0500/c/ > > "JohnL" wrote: > The each once hide the List already crowded
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.