Solved

Task Bar button

Posted on 1997-06-28
4
352 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
[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
  • 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
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…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

628 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