/*[]=====================================================================[]*/ /*[] LEADTOOLS for Windows - []*/ /*[] []*/ /*[] []*/ /*[] Copyright (c) 1991-2000 LEAD Technologies, Inc. []*/ /*[] All Rights Reserved. []*/ /*[]=====================================================================[]*/ #define IDI_MAIN 100 #define MENU_MAIN 101 #define IDM_OPEN 102 #define IDM_SAVEAS 103 #define IDM_EXIT 105 #define IDM_NORMAL 106 #define IDM_ZOOM 107 #define IDM_FITIMAGE 108 #define IDM_PRINT 109 #define IDM_CASCADE 112 #define IDM_TILE 113 #define IDM_ARRANGE 114 #define IDM_CLOSEALL 115 #define IDM_TOOLPOINTER 117 #define IDM_TOOLAUDIO 118 #define IDM_TOOLBUTTON 119 #define IDM_TOOLELLIPSE 120 #define IDM_TOOLFREEHAND 121 #define IDM_TOOLHOTSPOT 122 #define IDM_TOOLLINE 123 #define IDM_TOOLNOTE 124 #define IDM_TOOLPOLYGON 125 #define IDM_TOOLPOLYLINE 126 #define IDM_TOOLRECT 127 #define IDM_TOOLREDACT 128 #define IDM_TOOLSTAMP 129 #define IDM_TOOLTEXT 130 #define IDM_TOOLHILITE 131 #define IDM_TOOLRULER 132 #define IDM_TOOLRULER 132 #define IDM_TOOLCROSSPRODUCT 133 #define IDM_TOOLPOINT 134 #define IDM_TOOLPROTRACTOR 135 #define IDM_TOOLFREEHANDHOTSPOT 137 #define IDM_TOOLPUSHPIN 138 #define IDM_TOOLCURVE 139 #define IDM_TOOLCLOSEDCURVE 140 #define IDM_TOOLENCRYPT 141 #define IDM_TOOLRTF 142 #define IDM_TOOLPOLYRULER 143 #define IDM_TOOLTEXTPOINTER 144 #define IDM_TOOLVIDEO 145 #define IDM_SUBTOOL_FIRST 146 #define IDM_SUBTOOL_APPROVED 146 #define IDM_SUBTOOL_ASSIGNED 147 #define IDM_SUBTOOL_CHECKED 148 #define IDM_SUBTOOL_CLATPRV 149 #define IDM_SUBTOOL_COPY 150 #define IDM_SUBTOOL_DRAFT 151 #define IDM_SUBTOOL_EXTENDED 152 #define IDM_SUBTOOL_FAX 153 #define IDM_SUBTOOL_FAXED 154 #define IDM_SUBTOOL_IMPORTANT 155 #define IDM_SUBTOOL_INVOICE 156 #define IDM_SUBTOOL_NOTICE 157 #define IDM_SUBTOOL_OFFICIAL 158 #define IDM_SUBTOOL_ONFILE 159 #define IDM_SUBTOOL_PAID 160 #define IDM_SUBTOOL_PASSED 161 #define IDM_SUBTOOL_PENDING 162 #define IDM_SUBTOOL_PROCESSED 163 #define IDM_SUBTOOL_RECEIVED 164 #define IDM_SUBTOOL_REJECTED 165 #define IDM_SUBTOOL_RELEASE 166 #define IDM_SUBTOOL_SENT 167 #define IDM_SUBTOOL_SHIPPED 168 #define IDM_SUBTOOL_TOPSECRET 169 #define IDM_SUBTOOL_URGENT 170 #define IDM_SUBTOOL_VOID 171 #define IDM_SUBTOOL_LAST 171 #define IDM_USERDESIGN 176 #define IDM_USERRUN 177 #define IDM_FLIP 178 #define IDM_REVERSE 179 #define IDM_ROTATE45 180 #define IDM_ROTATE90 181 #define IDM_ROTATE135 182 #define IDM_ROTATE180 183 #define IDM_ROTATE225 184 #define IDM_ROTATE270 185 #define IDM_ROTATE315 186 #define IDM_TOOLSELECT 190 #define IDM_ANNOTATIONTOOLBAR 191 #define IDM_ABOUT 192 #define IDM_LOCK 193 #define IDM_UNLOCK 194 #define IDM_SHOWLOCK 195 #define IDM_REALIZE_ALL 196 #define IDM_REALIZE_REDACT 197 #define IDM_UNREALIZE 198 #define IDM_WANGMODE 199 #define IDM_MAGGLASS 200 #define IDM_APPLY_ENCRYPTORS 201 #define IDM_APPLY_DECRYPTORS 202 #define IDM_DOUBLE_BUFFER 206 #define IDM_LOCALE_CURRENT 207 #define IDM_LOCALE_ENGLISH 208 #define IDM_LOCALE_JAPANESE 209 #define IDM_LOCALE_ARABIC 210 #define IDM_CHANGE_HILITE 211 #define IDD_TEXT 300 #define IDD_RANGE 301 #define IDD_ABOUT 302 #define IDD_PASSWORD 303 #define IDD_HYPERLINK 304 #define IDD_CHANGE_HILITE 305 #define IDC_EDIT1 400 #define IDC_RANGEEDIT 401 #define IDC_RANGESCROLL 402 #define IDC_RANGELABEL 403 #define IDC_RADIO1 404 #define IDC_RADIO2 405 #define IDC_RADIO3 406 #define IDC_RADIO4 407 #define IDC_RADIO5 408 #define IDC_BUTTON1 409 #define IDC_EDIT2 410 #define IDB_USERBTN 420 #define IDC_ANNCROSS 500 #define IDC_ANNHANDLE 501 #define IDC_ANNMOVE 502 #define IDC_ANNSELECT 503 #define IDM_NEW_CHECKALL 503 #define IDM_NEW_UNCHECKALL 504 #define IDM_NEW_TOOLBAR 505 #define IDM_NEW_METAFILES 506 #define IDM_NEW_ALPHA 507 #define IDM_NEW_ROTATE 508 #define IDM_NEW_SIDE_HANDLES 509 #define IDM_NEW_MULTI_SELECT 510 #define IDM_NEW_CURSORS 511 #define IDM_NEW_ESC_CANCEL 512 #define IDM_NEW_CALIBRATE_RULER 513 #define IDM_NEW_DOT_DASH_LINES 514 #define IDM_NEW_TEXT_OPTIONS 515 #define IDC_STATIC -1 #define IDM_FIRSTCHILD 900 #define SZ_FRAMECLASS TEXT("ANNOTATEFRAME") #define SZ_CHILDCLASS TEXT("ANNOTATECHILD") #ifndef UNREFERENCED_PARAMETER #define UNREFERENCED_PARAMETER(P) \ { \ (P) = (P); \ } #endif enum { MENU_FILE_POS, MENU_EDIT_POS, MENU_VIEW_POS, MENU_WINDOW_POS, }; enum { MENU_USERMODE_POS, MENU_TOOL_POS }; typedef struct _SAVEPARM { L_TCHAR szFile[_MAX_PATH]; L_BOOL fAppend; L_INT nQFactor; L_INT nTypeIdx; } SAVEPARM, L_FAR * LPSAVEPARM; typedef struct _SFILESTRUCT { L_INT nFormat; L_INT nBitsPerPixel; } SFILESTRUCT, L_FAR *LPSFILESTRUCT; BOOL InitApplication (void); BOOL InitInstance (int nCmdShow); LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); BOOL CALLBACK GetTextDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam); BOOL CALLBACK RangeDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam); L_VOID SetSavePageNumber(LPSAVEDLGPARAMS pSaveParm); L_VOID SetPageNumber(L_INT nPageNumber); L_BOOL CALLBACK L_EXPORT AboutDlgProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam); L_BOOL CALLBACK L_EXPORT HyperlinkDlgProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam); LRESULT Child_OnUserMsg(HWND hwnd, int id, LPARAM lParam);