Archived

This topic is now archived and is closed to further replies.

Handles of open windows

Recommended Posts

how can I retrive a list of open windows and their handles in visual c++? thx [edited by - Xtremehobo on May 1, 2003 9:54:06 PM]

Share on other sites
Win32API

EnumWindows

Last time I did it was with Python, you can see that code if you wish. It should be similar minus the C/CPP details of course.

    import win32guidef EnumWindowProc(hwnd, lparam):     print hwndwin32gui.EnumWindows(EnumWindowProc, None)

[edited by - Interim on May 1, 2003 10:38:16 PM]

Share on other sites
hmm.. I have to do this without using message handling procedures in my program

Edit: oorr would that be the only way to do it :|
I'll try
Thanks

EDIT AGAIN: Ok got it working

[edited by - Xtremehobo on May 1, 2003 12:37:00 AM]

Share on other sites
Well, not quite message handling, just a callback function.

Ah you got it. =)

Int

Share on other sites
yeah, I see that now, lol
I''m still a vc++ newb, so yeah...

• Forum Statistics

• Total Topics
628312
• Total Posts
2981998

• 9
• 9
• 13
• 11
• 13