You would have to use the GetDlgCtrlID to match the dlg id of the window/control you desire or EnumWindows to loop through the windows.