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
Solved

Hiding or not window button in task bar !

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 96
maxBlock challenge 30 142
building a service to accessed via telnet client, want colors ? 4 92
Thin secure Windows 10 5 102
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 (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.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

809 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