How I can get a window's descriptor if I know only a part of its title and its className?
FindWindow()
requires the full title. Use EnumWindows()
, or GetWindow()
in a loop, to enumerate through all available windows, calling GetClassName()
and GetWindowText()
on each one and compare the values to your search criteria until you find a match.