Sign in to follow this  
yewbie

Multiple instances of a program excepting the same input [solved]

Recommended Posts

Im not sure whats causing this... but if I run two instances of my program even when the program is not the focus it still receives input from WM_KEYDOWN and WM_CHAR messages... I have not really experienced this before, any thoughts on what could cause this? Im creating my window with these styles CS_OWNDC | CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS I wrapped my windows interface in a class.... I was thinking I could just make some flag when I lose focus... but I have never really experienced this before :( any thoughts would be appreciated [Edited by - yewbie on June 4, 2009 12:22:09 AM]

Share this post


Link to post
Share on other sites
Oh.. I should mention that im using a GetAsyncKeyState macro, and now that I think of it... its just getting the keystate and that is not window focus specific... I think I will just have to go with my focus flag =p

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this