Solved

Hiding or not window button in task bar !

Posted on 2000-02-22
2
185 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
repeatSeparator  java  challenge 13 56
Detect CR LF to each line 12 153
lucky13 challenge 11 123
fizzArray2 challenge 1 72
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

895 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

12 Experts available now in Live!

Get 1:1 Help Now