EnumWindows

  • Thread starter Thread starter Nick
  • Start date Start date
N

Nick

Hi there,

I'm using the EnumWindows method in VB.NET to acquire the HDC of all
open windows. Unfortunately I get lots of unwanted window handles, I would
*ideally* like just the windows that are displayed along the taskbar, any
ideas on how I would seperate these? Thanks loads in advance.
 
Nick said:
I'm using the EnumWindows method in VB.NET to acquire the HDC of all
open windows. Unfortunately I get lots of unwanted window handles, I
would *ideally* like just the windows that are displayed along the
taskbar, any ideas on how I would seperate these?

You could use 'GetWindowLong' to check if the 'WS_VISIBLE' style bit is set
and 'WS_CHILD' is not set.
 
Nick,

Any chance in seeing this code you mentioned here?

Kevin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top