Reputation:
I want to hide an external application, ie. not the current application. I want to give the title of the application and it will be hidden. How can I do this programmatically?
Upvotes: 2
Views: 1382
Reputation: 27499
You need to get a handle to the window (which you can do using FindWindow()). Then you need to call ShowWindow() and set it's shown state to hidden.
Upvotes: 3
Reputation: 993085
In general terms, you could call FindWindow
to get the HWND of the window in question, then ShowWindow
with SW_HIDE
to hide the window.
Upvotes: 4