BeginPaint/EndPaint只能用在WM_PAINT消息中 TextOut(hDC,50,50,"This is first MFC Program!strlen("This is first MFC Program!EndPaint(hwnd,&ps);break;case WM_CHAR:/按下键盘字母键响应消息 char cArry...
WM_PAINT-Paint the main window WM_DESTROY-post a quit message and return LRESULT CALLBACK WndProc(HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam) { int wmId,wmEvent;PAINTSTRUCT ps;HDC hdc;switch...