Click here to Skip to main content
Rate this: bad
good
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 20:35pm
Edited 30-Apr-13 22:31pm
v2

1 solution

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

Solution 1

why not change the "ShowInTaskbar" property of the form to false?!
  Permalink  
Comments
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 OriginalGriff 350
1 Jochen Arndt 190
2 Richard MacCutchan 135
3 Sergey Alexandrovich Kryukov 130
4 DamithSL 105
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,310


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 1 May 2013
Copyright © CodeProject, 1999-2014
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