--- mstools/samples/generic/generic.h 2018/08/09 18:20:01 1.1.1.1 +++ mstools/samples/generic/generic.h 2018/08/09 18:23:32 1.1.1.3 @@ -1,6 +1,38 @@ -#define IDM_ABOUT 100 + +/******************************************************************************\ +* This is a part of the Microsoft Source Code Samples. +* Copyright (C) 1993 Microsoft Corporation. +* All rights reserved. +* This source code is only intended as a supplement to +* Microsoft Development Tools and/or WinHelp documentation. +* See these sources for detailed information regarding the +* Microsoft samples programs. +\******************************************************************************/ + +#define IDM_NEW 100 +#define IDM_OPEN 101 +#define IDM_SAVE 102 +#define IDM_SAVEAS 103 +#define IDM_PRINT 104 +#define IDM_PRINTSETUP 105 +#define IDM_EXIT 106 +#define IDM_UNDO 200 +#define IDM_CUT 201 +#define IDM_COPY 202 +#define IDM_PASTE 203 +#define IDM_LINK 204 +#define IDM_LINKS 205 +#define IDM_HELPCONTENTS 300 +#define IDM_HELPSEARCH 301 +#define IDM_HELPHELP 302 +#define IDM_ABOUT 303 + +#define DLG_VERFIRST 400 +#define DLG_VERLAST 404 + + BOOL InitApplication(HANDLE); BOOL InitInstance(HANDLE, int); -long FAR PASCAL MainWndProc(HWND, UINT, UINT, LONG); -BOOL FAR PASCAL About(HWND, UINT, UINT, LONG); +LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); +LRESULT CALLBACK About (HWND, UINT, WPARAM, LPARAM);