Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am developing a task-switcher. I need to decide whether an window is visible on taskbar. I have the HWND of the window.

This is a .NET/Native hybrid app with many P/Invokes. Well, the window class styles decide this but my question is which styles?

Thanks.

EDIT: The window may not necessarily be managed.
Posted
Updated 30-Apr-13 21:31pm
v2

1 solution

why not change the "ShowInTaskbar" property of the form to false?!
 
Share this answer
 
Comments
AlphaDeltaTheta 1-May-13 3:35am    
The problem is thw HWND may not necessarily be managed. I have thought of this property but this app enumerates the top level windows currently visible and determines an action in my app. I got a similar post on SO that suggested to examine window styles (that's the only way for an unmanaged window) but couldn't get the perfect result. The test case failed for IE window.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900