Is it possible to change focus inside a different application? I’m talking about the distinct views (data lists, custom views), not main windows. These also have handles, spy++ shows them properly and stuff, but when I’ve tried setting SetFocus(), is was no good. Does SetFocus() only work for main windows or what is amiss? Thanks
Is it possible to change focus inside a different application? I’m talking about the
Share
From the MSDN article:
You’ll need AttachThreadInput() first. GetWindowThreadProcessId() to get the thread that owns the window.