/*[]=====================================================================[]*/ /*[] 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_TOOLUSER 139 #define IDM_SUBTOOL_FIRST 140 #define IDM_SUBTOOL_APPROVED 140 #define IDM_SUBTOOL_ASSIGNED 141 #define IDM_SUBTOOL_CHECKED 142 #define IDM_SUBTOOL_CLATPRV 143 #define IDM_SUBTOOL_COPY 144 #define IDM_SUBTOOL_DRAFT 145 #define IDM_SUBTOOL_EXTENDED 146 #define IDM_SUBTOOL_FAX 147 #define IDM_SUBTOOL_FAXED 148 #define IDM_SUBTOOL_IMPORTANT 149 #define IDM_SUBTOOL_INVOICE 150 #define IDM_SUBTOOL_NOTICE 151 #define IDM_SUBTOOL_OFFICIAL 152 #define IDM_SUBTOOL_ONFILE 153 #define IDM_SUBTOOL_PAID 154 #define IDM_SUBTOOL_PASSED 155 #define IDM_SUBTOOL_PENDING 156 #define IDM_SUBTOOL_PROCESSED 157 #define IDM_SUBTOOL_RECEIVED 158 #define IDM_SUBTOOL_REJECTED 159 #define IDM_SUBTOOL_RELEASE 160 #define IDM_SUBTOOL_SENT 161 #define IDM_SUBTOOL_SHIPPED 162 #define IDM_SUBTOOL_TOPSECRET 163 #define IDM_SUBTOOL_URGENT 164 #define IDM_SUBTOOL_VOID 165 #define IDM_SUBTOOL_LAST 165 #define IDM_TOOLUSER_AP_SPINE_MEASURE 166 #define IDM_TOOLUSER_AP_SPINE_ANGULATED 167 #define IDM_TOOLUSER_AP_SPINE_ROUGH 169 #define IDM_TOOL_EXAMPLE1 170 #define IDM_USERDESIGN 176 #define IDM_USERRUN 177 #define IDM_TOOLSELECT 190 #define IDM_ANNOTATIONTOOLBAR 191 #define IDM_ABOUT 192 #define IDM_ANNENUMERATENODES 222 #define IDM_ANNBREAKALLGROUPS 223 #define IDD_TEXT 300 #define IDD_RANGE 301 #define IDD_ABOUT 302 #define IDD_PASSWORD 303 #define IDD_HYPERLINK 304 #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_POINT 412 #define IDB_USERBTN 413 #define IDB_AP_SPINE_MEASURE 414 #define IDB_ANALYSIS_AP_SPINE 415 #define IDB_ROUGH_AP_SPINE 416 #define IDB_ANGULATED_AP_SPINE 417 #define IDB_ANALYSIS_AP_HIP1 418 #define IDB_ANALYSIS_AP_HIP2 419 #define IDB_EXAMPLE1 420 #define IDB_ROUGH_LATERAL_SPINE 421 #define IDB_BOX_SIDE 422 #define IDB_ANALYSIS_LATERAL_SPINE 423 #define IDB_HIP_MEASURE_RIGHT 424 #define IDB_HIP_MEASURE_LEFT 425 #define IDB_FOREARM_ROUGH 426 #define IDB_WHOLE_BODY_ANALYSIS 427 #define IDB_BOX_CORNER 428 #define IDB_BOX_EIGHT_CORNER 429 #define IDC_STATIC_ANNOTATION_INDEX 430 #define IDD_ANN_HANDLE 431 #define IDC_STATIC_TYPE 432 #define IDC_CHECK_VISIBLE 433 #define IDC_RADIO_SHAPE_CIRCLE 434 #define IDC_RADIO_SHAPE_SQUARE 435 #define IDC_STATIC_TOTAL 436 #define IDC_STATIC_CONTAINER_LOCATION 437 #define IDC_STATIC_SCREEN_LOCATION 438 #define IDC_STATIC_INDEX 439 #define IDC_BUTTON_PEN_COLOR 440 #define IDC_BUTTON_FILL_COLOR 441 #define IDC_NO_CHANGE 442 #define IDC_CHANGE 443 #define IDC_QUIT 444 #define IDC_CURSOR_ROTATE 445 #define IDC_CURSOR_HORIZONTAL_RESIZE 446 #define IDC_POINTER 447 #define IDC_STATIC_DESCRIPTION 448 // Cooper Surgical Annotations #define ANNTOOL_EXAMPLE1 (ANNTOOL_USER + 1) #define ANNTOOL_AP_SPINE_MEASURE (ANNTOOL_USER + 2) #define ANNTOOL_AP_SPINE_ROUGH (ANNTOOL_USER + 3) #define ANNTOOL_AP_SPINE_ANALYSIS (ANNTOOL_USER + 4) #define ANNTOOL_AP_SPINE_ANGULATED (ANNTOOL_USER + 5) #define ANNTOOL_ROUGH_LATERAL_SPINE (ANNTOOL_USER + 6) #define ANNTOOL_ANALYSIS_LATERAL_SPINE (ANNTOOL_USER + 7) #define ANNTOOL_HIP_MEASURE_RIGHT (ANNTOOL_USER + 8) #define ANNTOOL_HIP_MEASURE_LEFT (ANNTOOL_USER + 9) #define ANNTOOL_HIP_ANALYSIS1 (ANNTOOL_USER + 10) #define ANNTOOL_HIP_ANALYSIS2 (ANNTOOL_USER + 11) #define ANNTOOL_FOREARM_ROUGH (ANNTOOL_USER + 12) #define ANNTOOL_WHOLE_BODY_ANALYSIS (ANNTOOL_USER + 13) #define ANNTOOL_BOX_SIDE (ANNTOOL_USER + 14) #define ANNTOOL_BOX_CORNER (ANNTOOL_USER + 15) #define ANNTOOL_BOX_EIGHT_CORNER (ANNTOOL_USER + 16) #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 #ifndef PI #define PI (3.1415926535) #endif //PI #ifdef WIN32 #define HWNDCTL(w, l) ((HWND) (l)) #define NOTIFYCODE(w, l) HIWORD(w) #define CTLID(w, l) LOWORD(w) #define SCROLLPOS(w, l) ((short) HIWORD(w)) #define SCROLLCODE(w, l) LOWORD(w) #define GETHBRBACKGROUND(hwnd) ((HBRUSH) GetClassLong(hwnd, GCL_HBRBACKGROUND)) #else #define HWNDCTL(w, l) ((HWND) HIWORD(l)) #define NOTIFYCODE(w, l) HIWORD(l) #define CTLID(w, l) (w) #define SCROLLPOS(w, l) ((short) LOWORD(l)) #define SCROLLCODE(w, l) (w) #define GETHBRBACKGROUND(hwnd) ((HBRUSH) GetClassWord(hwnd, GCW_HBRBACKGROUND)) #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 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);