Handles of open windows

Started by
3 comments, last by Xtremehobo 20 years, 11 months ago
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]
pixelwrench.com | [email="matt[nospam]@pixelwrench[nospam]com"]email[/email] lethalhamster: gamedev keeps taking my money, but im too lazy to not let them
Advertisement
Win32API

EnumWindows

You specify your callback function, the first param is your handle.

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)    


MSDN Link

[edited by - Interim on May 1, 2003 10:38:16 PM]
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]
pixelwrench.com | [email="matt[nospam]@pixelwrench[nospam]com"]email[/email] lethalhamster: gamedev keeps taking my money, but im too lazy to not let them
Well, not quite message handling, just a callback function.

Ah you got it. =)

Int
yeah, I see that now, lol
I''m still a vc++ newb, so yeah...
pixelwrench.com | [email="matt[nospam]@pixelwrench[nospam]com"]email[/email] lethalhamster: gamedev keeps taking my money, but im too lazy to not let them

This topic is closed to new replies.

Advertisement