473,503 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Enumerate taskbar windows

115 New Member
I've been searching for the past two days on how to enumerate only the visible windows on the desktop (ala Taskbar/Alt+Tab list) I am using EnumWindows to get the list of the windows and this is what I am currently using to filter:

Expand|Select|Wrap|Line Numbers
  1. if( (IsWindowVisible(hwnd) || IsIconic(hwnd)) && (GetWindowLong(hwnd, GWL_HWNDPARENT) == 0) && ( (((GetWindowLong(hwnd, GWL_EXSTYLE) & WS_EX_TOOLWINDOW) == 0) && GetWindow(hwnd, GW_OWNER) == 0) || ((GetWindowLong(hwnd, GWL_EXSTYLE) & WS_EX_APPWINDOW) && GetWindow(hwnd, GW_OWNER) != 0) ))
But i still see windows that are not on the taskbar. i.e. "GDI+ Window"

How can I filter to only windows that show up on the taskbar or in the alt+tab list?
Nov 23 '08 #1
1 3572
ShadowLocke
115 New Member
I think i got what i needed by removing the IsIconic(hwnd)..happens to work because i actually dont need windows that are minimized
Nov 24 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2007
by: Kyzer | last post by:
Hi all, I am writing a DLL which includes a function that may open a dialog. When this dialog is opened, an additional icon and program description is displayed in the Windows taskbar (similar...
1
5181
by: vijay | last post by:
To add a taskbar to a C# application Am currently developing a windows console application in C# (.NET 2003) and have a requirement to build a taskbar. The windows application is designed to...
5
5251
by: Quoner | last post by:
With XP's default theme (Windows XP style / Default (blue) on the Display Properties/Appearance tab), the taskbar clock foreground color is white. Change that to Windows XP style / Olive Green, and...
5
1293
by: Rado | last post by:
Hello. I would like to ask if In VISUAL BASIC.NET can make something like GOOGLE DESKBAR which is in TASKABR .Windows Media player has the same.When I minimize MEdia player it show in Taskbar...
2
24800
by: JohnProgrammer | last post by:
I know I can fill the screen in VB.NET by starting my window maximized and without a border. My question is; in VB.NET is there a way to enable/disable the taskbar much like doing the "always on...
2
3913
by: Rain | last post by:
Does anyone know the code in C# or snippet or API so i can hide and show the windows taskbar? Many people have suggested using ShowWindow and FindWindow or the ABM_SETSTATE but i am having problem...
0
1452
by: JaimeM26 | last post by:
Does anyone know how to detect and move/resize the Taskbar in VB.NET? I am able to determine if it is on the top or bottom by comparing the following 2 items. ...
10
2492
by: Mark Rae [MVP] | last post by:
Hi, This is really just a theoretical question for my own interest, and not for any nefarious purpose... :-) Say we have three applications running - Notepad, Wordpad and Excel - and each...
0
7091
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7342
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6998
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7464
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5586
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3162
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1516
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
391
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.