DLGS.C
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:

Windows编程

开发平台:

Visual C++

  1. /**********************************************************************/
  2. /*                                                                    */
  3. /*      DLGS.C                                                        */
  4. /*                                                                    */
  5. /*      Copyright (c) 1995-1996  Microsoft Corporation                     */
  6. /*                                                                    */
  7. /**********************************************************************/
  8. #include "windows.h"
  9. #include "imm.h"
  10. #include "resource.h"
  11. #include "multiui.h"
  12. /**********************************************************************/
  13. /*                                                                    */
  14. /*    About(HWND, UINT, WPARAM, LPARAM)                               */
  15. /*                                                                    */
  16. /**********************************************************************/
  17. BOOL FAR PASCAL AboutDlg(hDlg, message, wParam, lParam)
  18. HWND hDlg;
  19. unsigned message;
  20. WPARAM wParam;
  21. LPARAM lParam;
  22. {
  23.     switch (message) {
  24.         case WM_INITDIALOG:
  25.             return (TRUE);
  26.         case WM_COMMAND:
  27.             if (wParam == IDOK
  28.                 || wParam == IDCANCEL) {
  29.                 EndDialog(hDlg, TRUE);
  30.                 return (TRUE);
  31.             }
  32.             break;
  33.     }
  34.     return (FALSE);
  35. }