Click to See Complete Forum and Search --> : Obtain handle of first child in a window
Ali Imran
July 17th, 2005, 06:53 AM
I there anyway we can obtain HWND hanlde to first child of a window? where we have HWND handle of parent window only.
Is there anything like find_window or something ? which can return me handle to first child.
Any help is highly appreciated.
regards
SuperKoko
July 17th, 2005, 07:36 AM
FindWindowEx (http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/findwindowex.asp)
NoHero
July 17th, 2005, 07:44 AM
FindWindowEx (http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/findwindowex.asp)
Better:
GetWindow() (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/getwindow.asp)
Ali Imran
July 17th, 2005, 12:21 PM
Thank you for your answers guys
GetWindow() worked much better and perfectly returned the handle to first drawn control on a dialog.
regards
NoHero
July 17th, 2005, 12:26 PM
Thank you for your answers guys
GetWindow() worked much better and perfectly returned the handle to first drawn control on a dialog.
regards
You are very welcome... :wave:
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.