Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
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 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
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
TH
10-19-04 02:06 PM


Re: To avoid multiple items being displayed in Windows task list bar f
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
> this is: http://msdn.microsoft.com/msdnmag/issues/0500/c/
>
> "JohnL" wrote:
> 
The 
each 
once 
hide 
the 
List 
already 
crowded 



Report this thread to moderator Post Follow-up to this message
Old Post
JohnL
10-19-04 08:58 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Visual Studio archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:54 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.