Solved

Task Bar button

Posted on 1997-06-28
4
350 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 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