home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winui / input / ime / multiui / dlgs.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-09-11  |  1.4 KB  |  40 lines

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