TopMost causing problems

  • Thread starter Thread starter Scatropolis
  • Start date Start date
S

Scatropolis

I have a program that uses the topmost to stay on top. The problem I'm having
is that with some games (Half-Life mostly) it stays above the game, which can
get really annoying and in the way. Is there some way to detect when a
directX or game type window is taking screen control so I can disable my
program? Or any other suggestions? thanks
 
I have a program that uses the topmost to stay on top. The problem I'm
having
is that with some games (Half-Life mostly) it stays above the game, which can
get really annoying and in the way. Is there some way to detect when a
directX or game type window is taking screen control so I can disable my
program? Or any other suggestions? thanks

You could call EnumWindows (api call, iam not sure wheather there is
something like this in .NET) and determine wheather the size of this window
is as large as the screen size.
 
Back
Top