by Kzinti » Apr 21, 2004 @ 2:10am
No that's fine, I am just wondering what you use to decide that you have focus and call BeginScene(). Are you waiting for WM_SETFOCUS before trying to call BeginScene()?
I know SetForegroundWindow() is supposed to give your window focus... I am just trying to figure out what is going on. Could you add a call to SetFocus() right after and see if it works?
ex:
SetForegroundWindow( hwnd );
SetFocus( hwnd );