Use FlipToGDI() to show message boxes, dialog boxes, etc.
Page flipping suppress even CtrlAltEsc
I tried trapping messages like WM_KILLFOCUS and such as to know when to call fliptoGDI but without much success. Any ideas there?
And does anyone actually have a video card that doesn't have the the CanRenderWindow capability?.
3D-only add-ons, like Voodoo 1 and Voodoo 2 can't render to a window, and that's pretty much it.
As for the assertion dialogs, you can easily write your own assertion handling code - it's very simple (just take a look at assert.h to see how to structure the macros).
------------------
-vince
--- Official D Blog | Learning D | The One With D | D Bits
Has anyone try pressing ctrl alt esc while your application is running?.. do it, cancel and repeat a few times, see what happens.
The only way it seems now is to call fliptoGDI in the loop but I wonder about the performance hit. must test it out first.
--- Official D Blog | Learning D | The One With D | D Bits
Shucks.. keep posting wrong things these days. guess 10 hrs of sleep per day not enough 8).
int PASCAL WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
MSG msg;
lpCmdLine = lpCmdLine;
hPrevInstance = hPrevInstance;
if( !doInit( hInstance, nCmdShow ) )
{
return FALSE;
}
while( 1 )
{
updateFrame();
}
}
Anyway. I was saying if I place a fliptoGDI call after the flip, everything works but then the fliptoGDI function doubles the time it takes to just call flip.
then I tried trapping CtrlAltDelete in the message handle and do a flipToGDI there only..hmm.. that wouldn't solve the problem