Advertisement

Mouse grab (similar to alt-tab kind of...)

Started by February 12, 2001 11:06 PM
0 comments, last by Cpp 23 years, 9 months ago
Here''s a question. Say i have an OpenGL program running in windowed _or_ fullscreen. In both modes i want my app to "grab" the mouse. This is a must in windowed mode of course. But when i alt-tab or hit the syskey, i want to "let go" of the mouse so it can roam free around my desktop. How do i do this?? And yes, i will most likely have that stupid fullscreen/alt-tab problem that know one can solve it seems. So any other related help would be really appreciated !
SetCapture(hWnd) and ReleaseCapture(hWnd). WM_ACTIVATEAPP is sent to the window when it either becomes active or deactive (wParam has the value).

This topic is closed to new replies.

Advertisement