Click here to Skip to main content
13,049,233 members (63,487 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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?


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

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

why not change the "ShowInTaskbar" property of the form to false?!
Member 8371841 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 1 May 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100