00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #define IDM_OPENFILE 100
00017 #define IDM_SAVEFILE 101
00018 #define IDM_SAVEFILEAS 102
00019 #define IDM_PRINT 103
00020 #define IDM_EXIT 104
00021
00022
00023 #define IDM_ENTERNEW 200
00024 #define IDM_CHOOSECOLOR 201
00025 #define IDM_CHOOSEFONT 202
00026 #define IDM_FINDTEXT 203
00027 #define IDM_REPLACETEXT 204
00028 #define IDM_STANDARD 205
00029 #define IDM_HOOK 206
00030 #define IDM_CUSTOM 207
00031
00032
00033 #define IDM_PERCEPUAL 400
00034 #define IDM_COLOR 401
00035 #define IDM_SATURATION 402
00036 #define IDM_ASCII 403
00037 #define IDM_BINARY 404
00038 #define IDM_AUTO 405
00039 #define IDM_ABC 406
00040 #define IDM_DEFG 407
00041 #define IDM_INP_AUTO 408
00042 #define IDM_INP_GRAY 409
00043 #define IDM_INP_RGB 410
00044 #define IDM_INP_CMYK 411
00045 #define IDM_CSA 412
00046 #define IDM_CRD 413
00047 #define IDM_INTENT 414
00048 #define IDM_PROFCRD 415
00049
00050 #define IDM_ABOUT 300
00051
00052
00053
00054 #define IDEDIT 500
00055
00056
00057
00058 #define IDS_DIALOGFAILURE 1
00059 #define IDS_STRUCTSIZE 2
00060 #define IDS_INITIALIZATION 3
00061 #define IDS_NOTEMPLATE 4
00062 #define IDS_NOHINSTANCE 5
00063 #define IDS_LOADSTRFAILURE 6
00064 #define IDS_FINDRESFAILURE 7
00065 #define IDS_LOADRESFAILURE 8
00066 #define IDS_LOCKRESFAILURE 9
00067 #define IDS_MEMALLOCFAILURE 10
00068 #define IDS_MEMLOCKFAILURE 11
00069 #define IDS_NOHOOK 12
00070 #define IDS_SETUPFAILURE 13
00071 #define IDS_PARSEFAILURE 14
00072 #define IDS_RETDEFFAILURE 15
00073 #define IDS_LOADDRVFAILURE 16
00074 #define IDS_GETDEVMODEFAIL 17
00075 #define IDS_INITFAILURE 18
00076 #define IDS_NODEVICES 19
00077 #define IDS_NODEFAULTPRN 20
00078 #define IDS_DNDMMISMATCH 21
00079 #define IDS_CREATEICFAILURE 22
00080 #define IDS_PRINTERNOTFOUND 23
00081 #define IDS_NOFONTS 24
00082 #define IDS_SUBCLASSFAILURE 25
00083 #define IDS_INVALIDFILENAME 26
00084 #define IDS_BUFFERTOOSMALL 27
00085 #define IDS_FILTERSTRING 28
00086 #define IDS_UNKNOWNERROR 29
00087
00088
00089
00090 #define FILE_LEN 128
00091
00092
00093
00094
00095 LRESULT CALLBACK
MainWndProc(HWND, UINT, WPARAM, LPARAM);
00096
BOOL CALLBACK
About(HWND, UINT, WPARAM, LPARAM);
00097
BOOL CALLBACK
EnterNew(HWND, UINT, WPARAM, LPARAM);
00098
BOOL CALLBACK
FileOpenHookProc(HWND, UINT, WPARAM, LPARAM);
00099
BOOL CALLBACK
FileSaveHookProc(HWND, UINT, WPARAM, LPARAM);
00100
BOOL CALLBACK
ChooseColorHookProc(HWND, UINT, WPARAM, LPARAM);
00101
BOOL CALLBACK
ChooseFontHookProc(HWND, UINT, WPARAM, LPARAM);
00102
BOOL CALLBACK
FindTextHookProc(HWND, UINT, WPARAM, LPARAM);
00103
BOOL CALLBACK
ReplaceTextHookProc(HWND, UINT, WPARAM, LPARAM);
00104
BOOL CALLBACK
PrintDlgHookProc(HWND, UINT, WPARAM, LPARAM);
00105
BOOL CALLBACK
PrintSetupHookProc(HWND, UINT, WPARAM, LPARAM);
00106
00107
00108
BOOL InitApplication(HANDLE);
00109
BOOL InitInstance(HANDLE,
int);
00110
BOOL OpenNewFile( HWND );
00111
BOOL SaveToFile( HWND );
00112
BOOL SaveAs( HWND );
00113
void SearchFile( LPFINDREPLACE );
00114
BOOL ChooseNewFont( HWND );
00115
BOOL ChooseNewColor( HWND );
00116
void PrintFile( HWND );
00117
void CallFindText( HWND );
00118
void CallReplaceText( HWND );
00119
void ProcessCDError(DWORD, HWND);
00120
00121
void ColorSpaceControl( LPSTR FileName, LPSTR SaveFileName, WORD InpDrvClrSp,
00122 DWORD Intent, WORD CSAType, BOOL AllowBinary);
00123
void CreateCRDControl( LPSTR FileName, LPSTR SaveFileName,
00124 DWORD Inter_Intent, BOOL AllowBinary);
00125
void CreateINTENTControl(LPSTR FileName, LPSTR SaveFileName, DWORD Inter_Intent);
00126
void CreateProfCRDControl(LPSTR DevProfile, LPSTR TargetProfile,
00127 LPSTR SaveFileName, DWORD Inter_Intent, BOOL AllowBinary);