1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| GetMessage(&msg, NULL, NULL, NULL); while( msg.message != WM_QUIT ) { if( PeekMessage( &msg, NULL, 0, 0 , PM_REMOVE) ) { TranslateMessage( &msg ); DispatchMessage( &msg ); } else { tNow = GetTickCount(); if(tNow - tPre >= 40) MyPaint(hdc); } }
|