Home > Archive > Visual Studio > October 2004 > RE: To avoid multiple items being displayed in Windows task list bar f
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
RE: To avoid multiple items being displayed in Windows task list bar f
|
|
|
| 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 each
> dialog is created by DoModal() when it is called at the first time, and once
> another dialog gets the con, the current dialog will just minimize and hide
> (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
>
>
>
| |
|
| Thank 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[color=darkred]
> this is: http://msdn.microsoft.com/msdnmag/issues/0500/c/
>
> "JohnL" wrote:
>
The[color=darkred]
each[color=darkred]
once[color=darkred]
hide[color=darkred]
the[color=darkred]
List[color=darkred]
already[color=darkred]
crowded[color=darkred]
|
|
|
|
|