Annotation of pmsdk/samples/fatpel/fatpel.h, revision 1.1.1.1

1.1       root        1: /*
                      2:     FatPel Application Resource Ids
                      3:     Created by Microsoft Corporation, 1989
                      4: */
                      5: 
                      6: /* resources loaded via WinCreateStdWindow */
                      7: #define IDR_FATPEL             0x01
                      8: 
                      9: 
                     10: /* pointers */
                     11: #define IDR_DRAGSIZEPTR        0x02
                     12: #define IDR_DRAGCOLORPTR       0x03
                     13: 
                     14: 
                     15: /* dialog boxes */
                     16: #define IDR_ABOUTDLG           0x04
                     17: #define IDR_COLORSDLG          0x05
                     18: #define IDR_PELSIZEDLG         0x06
                     19: 
                     20: 
                     21: 
                     22: 
                     23: /**********************************************************************\
                     24: *  IDD_ - ID for Dialog item
                     25: *  IDM_ - ID for Menu commands
                     26: *  IDS - ID for String table
                     27: *  IDT - ID for Timers
                     28: \**********************************************************************/
                     29: 
                     30: /* common dialog box control values */
                     31: 
                     32: #define IDNULL                -1
                     33: #define IDD_OK                -2
                     34: #define IDD_CANCEL            -3
                     35: 
                     36: 
                     37: /* about ... */
                     38: 
                     39: #define IDD_VERSION            0x00
                     40: 
                     41: 
                     42: /* set colors ... */
                     43: 
                     44: #define IDD_MATHOBJ            0x01
                     45: #define IDD_RENDEREDOBJ                0x02
                     46: #define IDD_FIELD              0x03
                     47: #define IDD_CROSSHAIRS         0x04
                     48: #define IDD_INTERSTICE         0x05
                     49: #define IDD_CTLPOINTS          0x06
                     50: #define IDD_RGB                        0x07
                     51: 
                     52: 
                     53: /* set pel size ... */
                     54: 
                     55: #define IDD_PELWIDTH           0x10
                     56: #define IDD_PELHEIGHT          0x11
                     57: #define IDD_SQUARE             0x12
                     58: #define IDD_DIAMOND            0x13
                     59: #define IDD_CIRCLE             0x14
                     60: 
                     61: 
                     62: 
                     63: 
                     64: /* menus */
                     65: 
                     66: #define IDM_FILE       0x000
                     67: #define IDM_SAVE        0x001
                     68: #define IDM_ABOUT       0x002
                     69: 
                     70: #define IDM_DISPLAY    0x100
                     71: #define IDM_RENDEREDOBJ         0x101
                     72: #define IDM_MATHOBJ     0x102
                     73: #define IDM_CTLPOINTS   0x103
                     74: #define IDM_CROSSHAIRS  0x104
                     75: #define IDM_PELBORDER   0x105
                     76: #define IDM_ROUNDPOINTS         0x106
                     77: #define IDM_AUTOREDRAW  0x107
                     78: 
                     79: #define IDM_PRIM       0x200
                     80: #define IDM_NOPRIM      0x201
                     81: #define IDM_POLYLINE    0x202
                     82: #define IDM_POLYFILLET  0x203
                     83: #define IDM_POLYSPLINE  0x204
                     84: #define IDM_POINTARC    0x205
                     85: 
                     86: #define IDM_COLORS     0x300
                     87: #define IDM_SETCOLORS   0x301
                     88: #define IDM_EDITPELCOLORS 0x302
                     89: 
                     90: #define IDM_POINTS     0x400
                     91: #define IDM_CLEARALL    0x401
                     92: 
                     93: #define IDM_PELSIZE    0x500
                     94: #define IDM_SETPELSIZE  0x501
                     95: #define IDM_DRAGPELSIZE         0x502
                     96: 
                     97: #define IDM_REDRAW     0x600
                     98: 
                     99: 
                    100: 
                    101: 
                    102: /* strings */
                    103: 
                    104: #define IDS_TITLE              1
                    105: 
                    106: 
                    107: 
                    108: 
                    109: /************************************************************************
                    110: *
                    111: *   Constants
                    112: *
                    113: *   Miscellaneous constants.
                    114: *
                    115: ************************************************************************/
                    116: 
                    117: #define MAJOR_VERSION   0
                    118: #define MINOR_VERSION  11
                    119: 
                    120: #define CPTLMAX 50
                    121: #define CCHSTR 15
                    122: 
                    123: #define NO_POINT       -1
                    124: 
                    125: /* flags for Paint() options */
                    126: #define IGNORED                0x00    /* no bits set ==> ignored */
                    127: #define OVERRIDE_RENDERED_OBJ  0x01
                    128: #define CLEAR_BACKGROUND       0x02
                    129: #define CLEAR_FAT_BITMAP       0x04
                    130: #define RENDER_MATH_OBJ        0x08
                    131: 
                    132: 
                    133: 
                    134: 
                    135: /************************************************************************
                    136: *
                    137: *   Handy macros to eliminate some typing.
                    138: *
                    139: ************************************************************************/
                    140: 
                    141: #define TOGGLE_BOOL(x) ((x)=(!(x)))
                    142: 
                    143: #ifdef INCL_WINDIALOGS
                    144: 
                    145: #define SET_CHECK_BOX(x, y, z)                             \
                    146:        WinSendDlgItemMsg((x),(y),BM_SETCHECK,              \
                    147:            MPFROM2SHORT((z),0),0L)
                    148: 
                    149: #define TOGGLE_MENU_ITEM(x, y, z)                          \
                    150:        WinSendDlgItemMsg((x), FID_MENU, MM_SETITEMATTR,    \
                    151:            MPFROM2SHORT((y),TRUE),                         \
                    152:            MPFROM2SHORT(MIA_CHECKED,(z)?MIA_CHECKED:NULL))
                    153: 
                    154: #define CHECK_MENU_ITEM(x, y)                              \
                    155:        WinSendDlgItemMsg((x), FID_MENU, MM_SETITEMATTR,    \
                    156:            MPFROM2SHORT((y),TRUE),                         \
                    157:            MPFROM2SHORT(MIA_CHECKED,MIA_CHECKED))
                    158: 
                    159: #define UNCHECK_MENU_ITEM(x, y)                            \
                    160:        WinSendDlgItemMsg((x), FID_MENU, MM_SETITEMATTR,    \
                    161:            MPFROM2SHORT((y),TRUE),                         \
                    162:            MPFROM2SHORT(MIA_CHECKED,NULL))
                    163: 
                    164: #define ENABLE_MENU_ITEM(x, y)                             \
                    165:        WinSendDlgItemMsg((x), FID_MENU, MM_SETITEMATTR,    \
                    166:            MPFROM2SHORT((y),TRUE),                         \
                    167:            MPFROM2SHORT(MIA_DISABLED,NULL))
                    168: 
                    169: #define DISABLE_MENU_ITEM(x, y)                            \
                    170:        WinSendDlgItemMsg((x), FID_MENU, MM_SETITEMATTR,    \
                    171:            MPFROM2SHORT((y),TRUE),                         \
                    172:            MPFROM2SHORT(MIA_DISABLED,MIA_DISABLED))
                    173: 
                    174: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.