Advertisement

Making Windows do what i want...

Started by February 08, 2000 05:44 PM
1 comment, last by Bigshot 24 years, 10 months ago
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.
Advertisement
Thanks a lot. That did the trick.

Al
Alexbigshot@austin.rr.comFoolish man give wife grand piano. Wise man give wife upright organ.

This topic is closed to new replies.

Advertisement