正在阅读:《编程高手箴言》读后感(3)《编程高手箴言》读后感(3)

2004-04-07 10:02 出处:CSDN 作者:seacloud 责任编辑:sdq

   139  static int i = 0;
   140  char str[256];
   141
   142  switch (message)
   143  {
   144   case WM_COMMAND:
   145    wmId    = LOWORD(wParam);
   146    wmEvent = HIWORD(wParam);
   147    // Parse the menu selections:
   148    switch (wmId)
   149    {
   150     case IDM_ABOUT:
   151        DialogBox(hInst, (LPCTSTR)IDD_ABOUTBOX, hWnd, (DLGPROC)About);
   152        break;
   153     case IDM_EXIT:
   154        DestroyWindow(hWnd);
   155        break;
   156     default:
   157        return DefWindowProc(hWnd, message, wParam, lParam);
   158    }
   159    break;
   160   case WM_PAINT:
   161    hdc = BeginPaint(hWnd, &ps);
   162    // TODO: Add any drawing code here...
   163    RECT rt;
   164    GetClientRect(hWnd, &rt);
   165    DrawText(hdc, szHello, strlen(szHello), &rt, DT_CENTER);
   166    EndPaint(hWnd, &ps);
   167    break;
   168   case WM_DESTROY:
   169    PostQuitMessage(0);
   170    break;
   171   default:
   172    return DefWindowProc(hWnd, message, wParam, lParam);
   173    }
   174    return 0;
   175 }
   176

察看评论详细内容 我要发表评论
作者笔名简短内容 发表时间
:

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

相关文章

关注我们

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