Re: [python-win32] Find containing window given a control handle

2011-02-01 Thread Greg Ewing
Reckoner wrote: Given the handle of a text field or button embedded in some window, how can I find the parent window that contains the handle? Use the win32gui.GetParent() function? -- Greg ___ python-win32 mailing list python-win32@python.org http:

[python-win32] Find containing window given a control handle

2011-02-01 Thread Reckoner
Hi, Given the handle of a text field or button embedded in some window, how can I find the parent window that contains the handle? Right now, I'm exhaustively going through every visible window and matching every child handle. Perhaps there is a better way? Thanks! __