how to catch mouse click anywhere on the screen...

G

Guest

Hi,

I am using the Game API to play a video. There is too mode, fullscreen, and
...... not fullscreen. :)

When the video is not in fullscreen, it is surrounded by a few buttons. When
the video is switched to fullscreen, frames are displayed with the game API
over the visual controls. If the user click on the video, he can still click
buttons "behind" the video, which is not good... Also I would like that
when the user clicks anywhere on the screen, the video is switched back to
"not fullscreen" mode.

So my question is : How can I catch all the mouse click event (regardless
to the coordinates of the mouse click) ?

I would use it to prevent the user from clicking on buttons behind the
video, and to exit fullscreen mode. I need to catch all mouse click , event
those on the start menu icon... any idea ?

Thanks a lot!

Lionel Reyero
 
A

Alex Feinman [MVP]

When you go fullscreen, make sure that you either expand your window to full
screen, or create a new window size of the screen and make it topmost
(SetWindowPos(HWND_TOPMOST...))
 
G

Guest

Hi Alex,

I'm sorry, I don't really understand what you are proposing. I don't see how
I can do this in the compact framework.

You propose that when I switch to fullscreen I put a frame with TopMost
value (does not seem to exist in CF) and that I catch all mouse click on that
one ?

Thanks,
 

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

Top