I am using the ShowWindow function in Windows to show and hide specific windows which are not created by my own application. The use of this function is simple, as you basically only have to pass the window HWND and whether to show or hide it. However, some applications make it show up again.
For example, I can hide a Google Chrome window. However, when opening a website within Windows, Chrome pops up (it is my default internet browser) which means the hidden Chrome window is made shown again. I'd like to prevent this as any hidden windows should stay hidden at all times.
Would it be advisable to continiously pass the hide command (say 10 times a second or so) so that possibly shown windows are immediately made hidden again, or is there a function to lock these windows as being hidden?
Thanks.