How do i use these functions
and where is the best place to call them...?
maybe a bit vague,but im a newbie
If you read the doc, GXSuspend disable gapi drawing, and resume, resume it :P In other word, when the suspend is on, you will not be able to draw with gapi.
But for your specific question, if you read the M$ doc, you will find this:
on WM_KILLFOCUS, use GXSuspend()and on WM_SETFOCUS use GXResume()
You can also set it to any other event like loose focus and gain focus.
Is there a way to never loose focus ?
If your app is deactivated then reactivate it. See WM_ACTIVATE.
Dan East