Annotation of q_a/samples/cmndlg/cmndlg.h, revision 1.1.1.2

1.1       root        1: 
1.1.1.2 ! root        2: /******************************************************************************\
        !             3: *       This is a part of the Microsoft Source Code Samples. 
        !             4: *       Copyright (C) 1993 Microsoft Corporation.
        !             5: *       All rights reserved. 
        !             6: *       This source code is only intended as a supplement to 
        !             7: *       Microsoft Development Tools and/or WinHelp documentation.
        !             8: *       See these sources for detailed information regarding the 
        !             9: *       Microsoft samples programs.
        !            10: \******************************************************************************/
        !            11: 
1.1       root       12: 
                     13: // menu commands
                     14: 
                     15: // Find menu
                     16: #define IDM_OPENFILE        100
                     17: #define IDM_SAVEFILE        101
                     18: #define IDM_SAVEFILEAS      102
                     19: #define IDM_PRINT           103
                     20: #define IDM_EXIT            104
                     21: 
                     22: // Options menu
                     23: #define IDM_ENTERNEW        200
                     24: #define IDM_CHOOSECOLOR     201
                     25: #define IDM_CHOOSEFONT      202
                     26: #define IDM_FINDTEXT        203
                     27: #define IDM_REPLACETEXT     204
                     28: #define IDM_STANDARD        205
                     29: #define IDM_HOOK            206
                     30: #define IDM_CUSTOM          207
                     31: 
                     32: // Help menu
                     33: #define IDM_ABOUT           300
                     34: 
                     35: 
                     36: // Dialog box constants
                     37: #define IDEDIT              500
                     38: 
                     39: // string constants
                     40: 
                     41: #define IDS_DIALOGFAILURE     1
                     42: #define IDS_STRUCTSIZE        2
                     43: #define IDS_INITIALIZATION    3
                     44: #define IDS_NOTEMPLATE        4
                     45: #define IDS_NOHINSTANCE       5
                     46: #define IDS_LOADSTRFAILURE    6
                     47: #define IDS_FINDRESFAILURE    7
                     48: #define IDS_LOADRESFAILURE    8
                     49: #define IDS_LOCKRESFAILURE    9
                     50: #define IDS_MEMALLOCFAILURE  10
                     51: #define IDS_MEMLOCKFAILURE   11
                     52: #define IDS_NOHOOK           12
                     53: #define IDS_SETUPFAILURE     13
                     54: #define IDS_PARSEFAILURE     14
                     55: #define IDS_RETDEFFAILURE    15
                     56: #define IDS_LOADDRVFAILURE   16
                     57: #define IDS_GETDEVMODEFAIL   17
                     58: #define IDS_INITFAILURE      18
                     59: #define IDS_NODEVICES        19
                     60: #define IDS_NODEFAULTPRN     20
                     61: #define IDS_DNDMMISMATCH     21
                     62: #define IDS_CREATEICFAILURE  22
                     63: #define IDS_PRINTERNOTFOUND  23
                     64: #define IDS_NOFONTS          24
                     65: #define IDS_SUBCLASSFAILURE  25
                     66: #define IDS_INVALIDFILENAME  26
                     67: #define IDS_BUFFERTOOSMALL   27
                     68: #define IDS_FILTERSTRING     28
                     69: #define IDS_UNKNOWNERROR     29
                     70: 
                     71: // constants
                     72: 
                     73: #define FILE_LEN            80
                     74: 
                     75: // Function prototypes
                     76: 
                     77: // procs
                     78: long APIENTRY MainWndProc(HWND, UINT, UINT, LONG);
                     79: BOOL APIENTRY About(HWND, UINT, UINT, LONG);
                     80: BOOL APIENTRY EnterNew(HWND, UINT, UINT, LONG);
                     81: BOOL APIENTRY FileOpenHookProc(HWND, UINT, UINT, LONG);
                     82: BOOL APIENTRY FileSaveHookProc(HWND, UINT, UINT, LONG);
                     83: BOOL APIENTRY ChooseColorHookProc(HWND, UINT, UINT, LONG);
                     84: BOOL APIENTRY ChooseFontHookProc(HWND, UINT, UINT, LONG);
                     85: BOOL APIENTRY FindTextHookProc(HWND, UINT, UINT, LONG);
                     86: BOOL APIENTRY ReplaceTextHookProc(HWND, UINT, UINT, LONG);
                     87: BOOL APIENTRY PrintDlgHookProc(HWND, UINT, UINT, LONG);
                     88: BOOL APIENTRY PrintSetupHookProc(HWND, UINT, UINT, LONG);
                     89: 
                     90: //functions
                     91: BOOL InitApplication(HANDLE);
                     92: BOOL InitInstance(HANDLE, int);
                     93: BOOL OpenNewFile( HWND );
                     94: BOOL SaveToFile( HWND );
                     95: BOOL SaveAs( HWND );
                     96: void SearchFile( LPFINDREPLACE );
                     97: BOOL ChooseNewFont( HWND );
                     98: BOOL ChooseNewColor( HWND );
                     99: void PrintFile( HWND );
                    100: void CallFindText( HWND );
                    101: void CallReplaceText( HWND );
                    102: void ProcessCDError(DWORD, HWND);

unix.superglobalmegacorp.com

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