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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top