Annotation of mstools/samples/playsnd/about.c, revision 1.1.1.1

1.1       root        1: /*
                      2:     about.c
                      3: 
                      4:     show the apps about box
                      5: 
                      6: */
                      7: 
                      8: #include <windows.h>
                      9: #include "PlaySnd.h"
                     10: 
                     11: void About(
                     12:   HWND hWnd)
                     13: {
                     14:     /* show the about box */
                     15: 
                     16:     DialogBox(ghModule, MAKEINTRESOURCE(IDD_ABOUT) //"About"
                     17:                                , hWnd , (DLGPROC)AboutDlgProc);
                     18: }
                     19: 
                     20: 
                     21: LONG AboutDlgProc(HWND hDlg, UINT msg, DWORD wParam, LONG lParam)
                     22: {
                     23:     UNREFERENCED_PARAMETER(lParam);
                     24: 
                     25:     switch (msg) {
                     26:     case WM_INITDIALOG:
                     27:         break;
                     28: 
                     29:     case WM_COMMAND:
                     30:         switch (wParam) {
                     31:         case IDOK:
                     32:             EndDialog(hDlg, TRUE);
                     33:             break;
                     34:         default:
                     35:             break;
                     36:         }
                     37:         break;
                     38: 
                     39:     default:
                     40:         return FALSE; // say we didn't handle it
                     41:         break;
                     42:     }
                     43: 
                     44:     return TRUE; // say we handled it
                     45: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.