Making Windows do what i want...
I hate programming for windows. I''m using the console that Andre Lamothe developed in his Tricks book, and I''m making a game that will run in a window. It works fine, but when I try to switch to another application or window the game screen continues to render, even though there''s no frame... anyways, all I want to know is how to check if my application is on top (active) or inactive. If it''s the active window it will render and if it''s not it won''t render until it is. All it should require is an if statement and an API call, but what''s the API call?
Thanks,
Al
Alexbigshot@austin.rr.comFoolish man give wife grand piano. Wise man give wife upright organ.
Handle the WM_ACTIVATEAPP message in your Window Procedure. Look it up in MSDN for specifics.
--- Official D Blog | Learning D | The One With D | D Bits
Thanks a lot. That did the trick.
Al
Al
Alexbigshot@austin.rr.comFoolish man give wife grand piano. Wise man give wife upright organ.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement