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

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

unix.superglobalmegacorp.com

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