#include <windows.h>
#include <commdlg.h>
#include <dlgs.h>
#include <stdio.h>
#include <string.h>
#include <cderr.h>
#include "main.h"
#include "resource.h"
Go to the source code of this file.
Functions | |
BOOL WINAPI | OpenFiles (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) |
int PASCAL | WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) |
BOOL | InitApplication (HANDLE hInstance) |
BOOL | InitInstance (HANDLE hInstance, int nCmdShow) |
LRESULT CALLBACK | MainWndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) |
BOOL CALLBACK | EnterNew (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) |
BOOL WINAPI | About (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) |
BOOL CALLBACK | FileOpenHookProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) |
BOOL | OpenNewFile (HWND hWnd) |
BOOL | SaveToFile (HWND hWnd) |
BOOL CALLBACK | FileSaveHookProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) |
BOOL | SaveAs (HWND hWnd) |
BOOL CALLBACK | ChooseColorHookProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) |
BOOL | ChooseNewColor (HWND hWnd) |
BOOL CALLBACK | ChooseFontHookProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) |
BOOL | ChooseNewFont (HWND hWnd) |
BOOL CALLBACK | PrintSetupHookProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) |
BOOL CALLBACK | PrintDlgHookProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) |
void | PrintFile (HWND hWnd) |
BOOL CALLBACK | ReplaceTextHookProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) |
BOOL CALLBACK | FindTextHookProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) |
void | CallFindText (HWND hWnd) |
void | CallReplaceText (HWND hWnd) |
void | SearchFile (LPFINDREPLACE lpFR) |
void | ProcessCDError (DWORD dwErrorCode, HWND hWnd) |
Variables | |
HANDLE | hInst |
OPENFILENAME | OpenFileName |
CHAR | szDirName [256] = "" |
CHAR | szFile [256] = "\0" |
CHAR | szFileTitle [256] |
CHAR | szFilter [] = "Text Files (*.ICM)\0*.ICM\0All Files (*.*)\0*.*\0" |
CHAR | szSaveFilter [] = "Text Files (*.CSA)\0*.CSA\0All Files (*.*)\0*.*\0" |
CHAR | FileBuf [FILE_LEN] |
DWORD | dwFileSize |
UINT | FindReplaceMsg |
CHAR | szFindString [64] = "" |
CHAR | szReplaceString [64] = "" |
FINDREPLACE | frText |
LPFINDREPLACE | lpFR |
CHAR * | lpBufPtr = FileBuf |
CHOOSEFONT | chf |
CHOOSECOLOR | chsclr |
COLORREF | crColor |
LOGFONT | lf |
WORD | wMode = IDM_CUSTOM |
WORD | wAsciiMode = IDM_ASCII |
WORD | wIntentMode = IDM_PERCEPUAL |
WORD | wCSAMode = IDM_AUTO |
WORD | wInpDrvClrSp = IDM_INP_AUTO |
WORD | wCSAorCRD = IDM_CSA |
HWND | hDlgFR = NULL |
PRINTDLG | pd |
BOOL | AllowBinary = FALSE |
DWORD | Intent = 0 |
HWND | hWnd |
|
Definition at line 622 of file dec97/test/main.c. References BOOL, EndDialog(), FALSE, and TRUE.
|
|
Definition at line 1608 of file dec97/test/main.c. References FileBuf, FindTextHookProc(), frText, hDlgFR, hInst, hWnd, IDM_CUSTOM, IDM_HOOK, IDM_STANDARD, lpBufPtr, NULL, ProcessCDError(), szFindString, and wMode.
|
|
Definition at line 1667 of file dec97/test/main.c. References FileBuf, frText, hDlgFR, hInst, hWnd, IDM_CUSTOM, IDM_HOOK, IDM_STANDARD, lpBufPtr, NULL, ProcessCDError(), ReplaceTextHookProc(), szFindString, szReplaceString, and wMode.
|
|
Definition at line 1055 of file dec97/test/main.c. References BOOL, FALSE, and TRUE.
|
|
Definition at line 1175 of file dec97/test/main.c. References BOOL, chf, FALSE, GetDlgItem(), ShowWindow, and TRUE.
|
|
Definition at line 1100 of file dec97/test/main.c. References BOOL, ChooseColorHookProc(), chsclr, crColor, DWORD, FALSE, hInst, hWnd, IDM_CUSTOM, IDM_HOOK, IDM_STANDARD, L, NULL, ProcessCDError(), TRUE, and wMode.
|
|
Definition at line 1228 of file dec97/test/main.c. References BOOL, chf, ChooseFontHookProc(), FALSE, GetDC, hInst, hWnd, IDM_CUSTOM, IDM_HOOK, IDM_STANDARD, lf, NULL, ProcessCDError(), ReleaseDC(), TRUE, and wMode.
|
|
Definition at line 570 of file dec97/test/main.c. References BOOL, CHAR, dwFileSize, EndDialog(), FALSE, FILE_LEN, FileBuf, GetDlgItemText(), IDEDIT, lpBufPtr, strlen(), and TRUE.
|
|
Definition at line 669 of file dec97/test/main.c. References BOOL, CHAR, dwFileSize, FALSE, FileBuf, GetDlgItem(), GetDlgItemText(), L, lpBufPtr, NULL, OpenFileName, SendMessage(), sprintf(), strlen(), and TRUE.
|
|
Definition at line 885 of file dec97/test/main.c. References BOOL, CHAR, FALSE, GetDlgItem(), GetDlgItemText(), L, OpenFileName, SendMessage(), sprintf(), and TRUE.
|
|
Definition at line 1556 of file dec97/test/main.c. References BOOL, FALSE, frText, GetDlgItem(), ShowWindow, and TRUE.
|
|
Definition at line 185 of file dec97/test/main.c. References BOOL, IDI_ICON1, MainWndProc(), NULL, and RegisterClass.
|
|
Definition at line 224 of file dec97/test/main.c. References BOOL, FALSE, hInst, hWnd, NULL, ShowWindow, TRUE, and UpdateWindow().
|
|
Definition at line 282 of file dec97/test/main.c. References About(), AllowBinary, BeginPaint, BOOL, CallFindText(), CallReplaceText(), CheckMenuItem(), ChooseNewColor(), ChooseNewFont(), crColor, DefWindowProc(), DrawMenuBar(), dwFileSize, EnableMenuItem(), EnterNew(), FALSE, FileBuf, FindReplaceMsg, GetMenu(), Handle, hInst, hWnd, IDM_ABC, IDM_ABOUT, IDM_ASCII, IDM_AUTO, IDM_BINARY, IDM_CHOOSECOLOR, IDM_CHOOSEFONT, IDM_COLOR, IDM_CRD, IDM_CSA, IDM_CUSTOM, IDM_DEFG, IDM_ENTERNEW, IDM_EXIT, IDM_FINDTEXT, IDM_HOOK, IDM_INP_AUTO, IDM_INP_CMYK, IDM_INP_GRAY, IDM_INP_RGB, IDM_INTENT, IDM_OPENFILE, IDM_PERCEPUAL, IDM_PROFCRD, IDM_REPLACETEXT, IDM_SATURATION, IDM_STANDARD, INT, Intent, lf, lpBufPtr, lpFR, NULL, OpenFiles(), PostQuitMessage(), SearchFile(), strlen(), TRUE, wAsciiMode, wCSAMode, wCSAorCRD, wInpDrvClrSp, wIntentMode, and wMode.
|
|
|
|
Definition at line 755 of file dec97/test/main.c. References BOOL, FALSE, FileOpenHookProc(), hInst, hWnd, IDM_CUSTOM, IDM_HOOK, IDM_STANDARD, L, NULL, OpenFileName, ProcessCDError(), szFile, szFileTitle, szFilter, TRUE, and wMode.
|
|
Definition at line 1355 of file dec97/test/main.c. References BOOL, FALSE, GetDlgItem(), pd, ShowWindow, and TRUE.
|
|
Definition at line 1418 of file dec97/test/main.c. References FileBuf, hInst, hWnd, IDM_CUSTOM, IDM_HOOK, IDM_STANDARD, NULL, pd, PrintDlgHookProc(), PrintSetupHookProc(), ProcessCDError(), strlen(), TRUE, and wMode.
|
|
Definition at line 1304 of file dec97/test/main.c. References BOOL, FALSE, GetDlgItem(), pd, ShowWindow, and TRUE.
|
|
|
Definition at line 1506 of file dec97/test/main.c. References BOOL, FALSE, frText, GetDlgItem(), ShowWindow, and TRUE.
|
|
Definition at line 948 of file dec97/test/main.c. References BOOL, FALSE, FileSaveHookProc(), hInst, hWnd, IDM_CRD, IDM_CSA, IDM_CUSTOM, IDM_HOOK, IDM_PROFCRD, IDM_STANDARD, L, NULL, OpenFileName, ProcessCDError(), szFile, szFileTitle, szSaveFilter, TRUE, wCSAorCRD, and wMode.
|
|
Definition at line 826 of file dec97/test/main.c. References BOOL, CHAR, dwFileSize, FALSE, FileBuf, hWnd, NULL, OpenFileName, sprintf(), and TRUE.
|
|
Definition at line 1725 of file dec97/test/main.c. References BOOL, CHAR, dwFileSize, FALSE, FILE_LEN, FileBuf, lpBufPtr, lpFR, sprintf(), strlen(), and TRUE.
|
|
Definition at line 129 of file dec97/test/main.c. References DispatchMessage(), FALSE, FindReplaceMsg, GetMessage(), hDlgFR, hInst, InitApplication(), InitInstance(), IsDialogMessage, IsWindow(), msg, NULL, RegisterWindowMessage(), and TranslateMessage().
|
|
Definition at line 108 of file dec97/test/main.c. |
|
Definition at line 95 of file dec97/test/main.c. |
|
Definition at line 96 of file dec97/test/main.c. |
|
Definition at line 97 of file dec97/test/main.c. |
|
Definition at line 88 of file dec97/test/main.c. |
|
Definition at line 87 of file dec97/test/main.c. |
|
Definition at line 89 of file dec97/test/main.c. |
|
Definition at line 92 of file dec97/test/main.c. |
|
Definition at line 105 of file dec97/test/main.c. |
|
Definition at line 74 of file dec97/test/main.c. |
|
Definition at line 110 of file dec97/test/main.c. |
|
Definition at line 109 of file dec97/test/main.c. |
|
Definition at line 98 of file dec97/test/main.c. |
|
Definition at line 94 of file dec97/test/main.c. |
|
Definition at line 93 of file dec97/test/main.c. |
|
Definition at line 75 of file dec97/test/main.c. |
|
Definition at line 106 of file dec97/test/main.c. |
|
Definition at line 76 of file dec97/test/main.c. |
|
Definition at line 77 of file dec97/test/main.c. |
|
Definition at line 78 of file dec97/test/main.c. |
|
Definition at line 84 of file dec97/test/main.c. |
|
Definition at line 90 of file dec97/test/main.c. |
|
Definition at line 91 of file dec97/test/main.c. |
|
Definition at line 85 of file dec97/test/main.c. |
|
Definition at line 100 of file dec97/test/main.c. |
|
Definition at line 102 of file dec97/test/main.c. |
|
Definition at line 104 of file dec97/test/main.c. |
|
Definition at line 103 of file dec97/test/main.c. |
|
Definition at line 101 of file dec97/test/main.c. |
|
Definition at line 99 of file dec97/test/main.c. |