Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# Windows C++/MFC
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 20:35pm
Edited 30-Apr-13 22: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 at 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
0 Sergey Alexandrovich Kryukov 9,580
1 OriginalGriff 8,370
2 Peter Leow 4,859
3 Kornfeld Eliyahu Peter 3,210
4 Maciej Los 2,301

Advertise | Privacy | Mobile
Web03 | 2.8.150327.1 | Last Updated 1 May 2013
Copyright © CodeProject, 1999-2015
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