|
|
1.1 ! root 1: /* ! 2: Header file for EDPLINE ! 3: Created by Microsoft, IBM Corporation, 1990 ! 4: */ ! 5: ! 6: /* ! 7: Resource Ids ! 8: */ ! 9: ! 10: /* resources loaded via WinCreateStdWindow */ ! 11: #define IDR_EDPLINE 0x01 ! 12: ! 13: ! 14: /* ! 15: IDD - ID for Dialog boxes ! 16: IDM - ID for Menu commands ! 17: IDS - ID for String table ! 18: */ ! 19: ! 20: /* dialogs */ ! 21: ! 22: #define IDD_ABOUT 0x0100 ! 23: ! 24: /* menus */ ! 25: ! 26: #define IDM_PRIM 0x0200 ! 27: #define IDM_NOPRIM 0x0201 ! 28: #define IDM_POLYLINE 0x0202 ! 29: #define IDM_POLYFILLET 0x0203 ! 30: #define IDM_POLYSPLINE 0x0204 ! 31: #define IDM_POINTARC 0x0205 ! 32: #define IDM_ABOUT 0x0206 ! 33: #define IDM_COPY 0X0207 ! 34: ! 35: #define IDM_POINTS 0x0400 ! 36: #define IDM_CTLPOINTS 0x0401 ! 37: #define IDM_CLEARALL 0x0402 ! 38: ! 39: /* strings */ ! 40: ! 41: #define IDS_TITLE 1 ! 42: ! 43: ! 44: ! 45: ! 46: /* ! 47: Constants ! 48: */ ! 49: ! 50: #define MAJOR_VERSION 1 ! 51: #define MINOR_VERSION 1 ! 52: ! 53: #define CPTLMAX 20 ! 54: #define CCHSTR 15 ! 55: ! 56: ! 57: ! 58: ! 59: /* ! 60: Aspect ratio structure ! 61: */ ! 62: ! 63: typedef struct ! 64: { ! 65: LONG lHorz; ! 66: LONG lVert; ! 67: } ASPECT; ! 68: ! 69: ! 70: ! 71: ! 72: /* ! 73: Handy macros to eliminate some typing. ! 74: */ ! 75: ! 76: #define TOGGLE_BOOL(x) ((x)=(!(x))) ! 77: ! 78: #ifdef INCL_WINDIALOGS ! 79: ! 80: #define SET_CHECK_BOX(x, y, z) \ ! 81: WinSendDlgItemMsg((x),(y),BM_SETCHECK, \ ! 82: MPFROM2SHORT((z),0),0L) ! 83: ! 84: #define TOGGLE_MENU_ITEM(x, y, z) \ ! 85: WinSendDlgItemMsg((x), FID_MENU, MM_SETITEMATTR, \ ! 86: MPFROM2SHORT((y),TRUE), \ ! 87: MPFROM2SHORT(MIA_CHECKED,(z)?MIA_CHECKED:NULL)) ! 88: ! 89: #define CHECK_MENU_ITEM(x, y) \ ! 90: WinSendDlgItemMsg((x), FID_MENU, MM_SETITEMATTR, \ ! 91: MPFROM2SHORT((y),TRUE), \ ! 92: MPFROM2SHORT(MIA_CHECKED,MIA_CHECKED)) ! 93: ! 94: #define UNCHECK_MENU_ITEM(x, y) \ ! 95: WinSendDlgItemMsg((x), FID_MENU, MM_SETITEMATTR, \ ! 96: MPFROM2SHORT((y),TRUE), \ ! 97: MPFROM2SHORT(MIA_CHECKED,NULL)) ! 98: ! 99: #define ENABLE_MENU_ITEM(x, y) \ ! 100: WinSendDlgItemMsg((x), FID_MENU, MM_SETITEMATTR, \ ! 101: MPFROM2SHORT((y),TRUE), \ ! 102: MPFROM2SHORT(MIA_DISABLED,NULL)) ! 103: ! 104: #define DISABLE_MENU_ITEM(x, y) \ ! 105: WinSendDlgItemMsg((x), FID_MENU, MM_SETITEMATTR, \ ! 106: MPFROM2SHORT((y),TRUE), \ ! 107: MPFROM2SHORT(MIA_DISABLED,MIA_DISABLED)) ! 108: ! 109: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.