[python-win32] EnumChildWindows

Radu Ciora raduciora at yahoo.com
Mon Aug 20 22:49:19 CEST 2007


Hi everyone,
can anyone give me an example of use of  win32gui.EnumChildWindows() function
as I can't seem to make it work:

my code looks like this:
...
win32gui.EnumChildWindows(l_hwnd, self.windowEnumerationHandler(), l_childlist)
...
    def windowEnumerationHandler(hwnd, resultList):
    #Pass to win32gui.EnumWindows() to generate list of window handle, window text.
        print "hwnd: " + str(hwnd)
        print "resultList: " + str(resultList)
        resultList.append((hwnd, win32gui.GetWindowText(hwnd)))

Any help much appreciated!
 Thanks a million,

Radu.




      ___________________________________________________________ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  http://uk.promotions.yahoo.com/forgood/environment.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20070820/e71d45b0/attachment.htm 


More information about the python-win32 mailing list