Mark一下!
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);
}
4228

被折叠的 条评论
为什么被折叠?



