|
|
1.1 ! root 1: /* ! 2: * about.c - Show the "About" box. ! 3: */ ! 4: ! 5: #include <windows.h> ! 6: #include "about.h" ! 7: ! 8: ! 9: /* About - Shows the "About MIDI Monitor" dialog. ! 10: * ! 11: * Params: hWnd - The application's main window handle. ! 12: * hInstance - The application's instance handle. ! 13: * ! 14: * Returns: void ! 15: */ ! 16: ! 17: void About( ! 18: HANDLE hInstance, ! 19: HWND hWnd) ! 20: { ! 21: FARPROC fpDlg; ! 22: ! 23: fpDlg = MakeProcInstance((FARPROC)AboutDlgProc, hInstance); ! 24: DialogBox(hInstance, "About", hWnd, (DLGPROC)fpDlg); ! 25: FreeProcInstance(fpDlg); ! 26: } ! 27: ! 28: ! 29: /* AboutDlgProc - The dialog procedure for the "About MIDI Monitor" dialog. ! 30: * ! 31: * Params: hDlg - Specifies the associated dialog box. ! 32: * msg - Specifies the message from the dialog box. ! 33: * wParam - 32 bits of message-dependent data. ! 34: * lParam - 32 bits of message-dependent data. ! 35: * ! 36: * Returns: Non-zero if the message is processed, zero otherwise. ! 37: */ ! 38: ! 39: int FAR PASCAL AboutDlgProc( ! 40: HWND hDlg, ! 41: UINT msg, ! 42: WPARAM wParam, ! 43: LPARAM lParam) ! 44: { ! 45: UNREFERENCED_PARAMETER(wParam); ! 46: UNREFERENCED_PARAMETER(lParam); ! 47: ! 48: switch (msg) { ! 49: case WM_INITDIALOG: ! 50: break; ! 51: ! 52: case WM_COMMAND: ! 53: EndDialog(hDlg, TRUE); ! 54: break; ! 55: ! 56: default: ! 57: return FALSE; ! 58: break; ! 59: } ! 60: ! 61: return (TRUE); ! 62: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.