Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide window on takbar

Status
Not open for further replies.

JimmyK

Programmer
Sep 8, 2000
142
VN
Hi all,
In VB, window property "ShowInTaskbar" to show or hide it on taskbar. How can i make not-show-in-taskbar window in VC++

Thanks very much

Jimmy
 
I know its a late answer, but if you're still looking,
you can use ShowWindow().
you'll need a handle to the current window ( i think GetActiveWindow() ) will work.
then set it to 0 or SW_HIDE
 
Jimmy,

On MSDN search for knowledgebase article Q205158. Here is the summary from it:


SUMMARY

Sometimes, it might be necessary for an application to prevent its main window from appearing on the taskbar. This article describes two ways that this can be accomplished.


Good luck
-pete
 
Thanks for all your reponses

Pete,
I have MSDN 98 (not 2000). When i search for "Q205158" , no
topic is found. plz check it for me.

Nytyme,
If ShowWindow(hwnd,SW_HIDE), hwnd will disappear from screen. I want it to appear on screen and not show in taskbar.

Thanks in advance
Jimmy

Jimmy Le
nhan_tiags@yahoo.com
 
Hi,
There are some Win32API functions.

NOTIFYICONDATA nti;
nti.xxx=...;
...
...///init the struct nti
Shell_NotifyIcon(NIM_ADD,&nti);
ShowWindow(your_hWnd,SW_HIDE);

to delete icon from the bar:

Shell_NotifyIcon(NIM_DELETE,&nti);

Also you should handle the mouse messages on the bar.
 
Hi Joln,

I think Shell_NotifyIcon is used to Add, Delete icon on taskbar. That's not what i want.

Excuse me, if you can use VB, pls pay a few seconds to look at ShowInTaskbar property of the form.
That's what i want.

Thanks anyway and wait for all your solutions.

Jimmy


Jimmy Le
nhan_tiags@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top