Solved

Task Bar button

Posted on 1997-06-28
4
349 Views
Last Modified: 2013-12-03
I have the following problem :
I want to remove task bar button from system task bar ( Win95 & NT 4.0 ) during runtime. If I hide the application main window, the button disapears, but I want to do it without hideing the window. It is easy when you crate window, because you can set style to WS_EX_TOOLWINDOW,
but ModifyStyleEx function ( MFC ) doesn't work when the window is already shown. How to remove that button then ?

Please help me.

0
Comment
Question by:lizer
  • 2
  • 2
4 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
ID: 1399523
Try the following code in your frame window:

this->ShowWindow(SW_HIDE);
this->ModifyStyleEx(WS_EX_APPWINDOW, WS_EX_TOOLWINDOW,
                    SWP_DRAWFRAME | SWP_FRAMECHANGED);
this->ShowWindow(SW_SHOW);

0
 

Author Comment

by:lizer
ID: 1399524
Thanks for advise.
It works, but it is not everything I wanted. I got few frame windows ( only one active ) but I want only one of them to be visible on task bar and also on task switcher. One window ( main ) should be always on task bar and other should appear on task switcher only when they are active, but when they have WS_EX_TOOLWINDOW style they won't appear on task switcher. How to do it then ?

Marcin L.
0
 
LVL 23

Expert Comment

by:chensu
ID: 1399525
So, you mean you would like the window to appear on task switcher but not no task bar. As far as I know, you have to remove the title bar of that window.
0
 

Author Comment

by:lizer
ID: 1399526
OK but I want my titles. Thank for advise anyway.
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
ODBC Connection; Switch between 2 SQL Databases VBA 11 106
SignTool Error with Windows 10 5 177
Where to obtain Oracle Data Provider for .NET 3.5 7 53
SSRS troubles 4 68
This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

856 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