• Advertisement
Sign in to follow this  

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

This topic is 3246 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement