Solved

Hiding or not window button in task bar !

Posted on 2000-02-22
2
205 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Question regarding Copy/Paste 16 98
zeroFront challenge 7 124
zeroMAx challenge 20 127
My project did see openJDK that I installed. What could be the problem 7 162
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

696 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