Solved

Hiding or not window button in task bar !

Posted on 2000-02-22
2
172 Views
Last Modified: 2013-11-20
I have a dialog application which insert also an icon in the taskbar Icons.

What I want to do, is when I minimize my application, that the button in the taskbar is removed.
When I want to show the application, that this button is already inserted in the taskbar.

How can I do this ?
0
Comment
Question by:mike_marquet
2 Comments
 
LVL 5

Accepted Solution

by:
Wyn earned 50 total points
ID: 2545896
First). Call ShowWindow( hwnd, SW_HIDE ) whenever your window callback proc. recieves WM_SIZE with wParam == SIZE_MINIMIZE.

Second). Call ShowWindow( hwnd, SW_RESTORE ) whenever your window callback proc. recieves taskbar notification with left mouse click at our icon.
//Here suppose you show the window by click the tray icon.But it's dependent.

Above do exactly what you want.
Regards
Wyn
0
 

Author Comment

by:mike_marquet
ID: 2546438
It's so easy that I have not thought about it.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
MFC Dialog 9 47
Strange date stored 22 100
Question regarding Copy/Paste 16 87
java ^ examples 8 57
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now