Solved

Task Bar button

Posted on 1997-06-28
4
344 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
OK but I want my titles. Thank for advise anyway.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

771 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

10 Experts available now in Live!

Get 1:1 Help Now