I have an HDC object and I'd like to use it to get the name of the program that created it (such as Notepad or Firefox). Is there a way to do this?
If not, how can I do this?
I have an HDC object and I'd like to use it to get the name of the program that created it (such as Notepad or Firefox). Is there a way to do this?
If not, how can I do this?
Or, once you have the window handle, GetWindowText to get the window title.