Mark一下!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
MSG msg; while(GetMessage (&msg, PenDlg->GetSafeHwnd(), 0, 0 )) { char strText[MAX_PATH]; wsprintfA(strText,"Message %x\n",msg.message); OutputDebugStringA(strText); //WriteLog(strText); if (msg.message == WM_PAINT) { CRect Rect; PenDlg->InvalidateRect(&Rect); PenDlg->Invalidate(); PenDlg->UpdateWindow(); } TranslateMessage (&msg); DispatchMessage (&msg); } |
转载请注明:exchen's blog » 窗口重绘