Focus, Focus, Ultra Death In The Mega Face!
How do I check if a Window has gone out of focus? Im making a Windowed Direct3D Game (Crazy Tetris) and want to be able to pause automatically when the user clicks on a different window or minimizes. I will be done just as soon as i fix a few mp3 problems and fix this minimizing issue. I will try and post it online for you all to play. Should be fun.
First person to answer my question correctly gets sex! I mean, What???
when you get a WM_ACTIVATE event check
if(LOWORD(wParam) == WA_INACTIVE)// check if lost focus
if(LOWORD(wParam) == WA_CLICKACTIVE || LOWORD(wParam) == WA_CLICKACTIVE) // check if getting focus
Can I have my sex now?
if(LOWORD(wParam) == WA_INACTIVE)// check if lost focus
if(LOWORD(wParam) == WA_CLICKACTIVE || LOWORD(wParam) == WA_CLICKACTIVE) // check if getting focus
Can I have my sex now?
Considering what the contract entails, the proper legal phrasing of "oral contract being legally binding" is probably a better joke...
(joke shamelessly plaguerized from www.dieselsweeties.com)
(joke shamelessly plaguerized from www.dieselsweeties.com)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement