04-16-2012, 12:35 PM
Hello
I am working on a chat client and i want to notify the user when there is a new message. So far so good, it all works when the window is minimized. But when the window doesnt have focus (and its not minimized) the user doesnt get notified.
So my question is; how can i check if the focus is on my program or if the users is using another program?
I am working on a chat client and i want to notify the user when there is a new message. So far so good, it all works when the window is minimized. But when the window doesnt have focus (and its not minimized) the user doesnt get notified.
So my question is; how can i check if the focus is on my program or if the users is using another program?