Click here to Skip to main content
11,647,640 members (65,784 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# Windows C++/MFC
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 30-Apr-13 19:35pm
Edited 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 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 500
1 F-ES Sitecore 370
2 OriginalGriff 322
3 DamithSL 315
4 CPallini 240
0 OriginalGriff 1,342
1 994
2 DamithSL 971
3 Sergey Alexandrovich Kryukov 873
4 CPallini 795

Advertise | Privacy | Mobile
Web01 | 2.8.150804.3 | 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