正在阅读:明明白白看MFC之程序框架(1)明明白白看MFC之程序框架(1)

2004-04-16 10:25 出处:CSDN 作者:eliner 责任编辑:sdq

   case WM_PAINT:

               hdc = BeginPaint(hWnd, &ps);

               // TODO: Add any drawing code here...

               RECT rt;

               GetClientRect(hWnd, &rt);

               DrawText(hdc, szHello, strlen(szHello), &rt, DT_CENTER);

               EndPaint(hWnd, &ps);

               break;

        case WM_DESTROY:

               ……

        default:

               return DefWindowProc(hWnd, message, wParam, lParam);

     }

     return 0;

  }

键盘也能翻页,试试“← →”键

相关文章

关注我们

最新资讯离线随时看 聊天吐槽赢奖品