当前位置:首页 > CVI中宏定义的各控件常量值
#define VAL_PLOT_RENAME -18 /* graph */ #define VAL_PLOT_LINE_THICKNESS -19 /* graph */
#define VAL_FIND_NEXT -20 /* table, tree */ #define VAL_FIND_PREV -21 /* table, tree */
/*** values for localized decimal symbol **/
#define VAL_USE_PERIOD 0 #define VAL_USE_SYSTEM_SETTING 1
/*** values for font character sets ***/ #define VAL_NATIVE_CHARSET -1 #define VAL_ANSI_CHARSET 0 #define VAL_SYMBOL_CHARSET 2 #define VAL_SHIFTJIS_CHARSET 128 #define VAL_HANGUL_CHARSET 129 #define VAL_GB2312_CHARSET 134 #define VAL_CHINESEBIG5_CHARSET 136 #define VAL_HEBREW_CHARSET 177 #define VAL_ARABIC_CHARSET 178 #define VAL_GREEK_CHARSET 161 #define VAL_TURKISH_CHARSET 162 #define VAL_VIETNAMESE_CHARSET 163 #define VAL_THAI_CHARSET 222 #define VAL_EASTEUROPE_CHARSET 238 #define VAL_RUSSIAN_CHARSET 204 #define VAL_MAC_CHARSET 77 #define VAL_BALTIC_CHARSET 186 #define VAL_OEM_CHARSET 255
/*** for numeric, graph, text controls ***/
#define VAL_DS_WRITE 1 #define VAL_DS_READ 2
/*** for set attribute functions ***/
#define VAL_ALL_OBJECTS -1 #define VAL_DFLT_FOR_NEW_OBJECTS -2
/*** JPEG options - used for the option parameter of SaveBitmapToJPEGFile ***/ #define JPEG_INTERLACE 0x40000000 #define JPEG_PROGRESSIVE 0x40000000
/* Note: only one of the two following may be used. If more than */ /* one is applied, DCTFAST will be used. The default is DCTFLOAT.*/ #define JPEG_DCTFAST 0x20000000
#define JPEG_DCTSLOW 0x10000000 #define JPEG_DCTFLOAT 0x00000000
/*** values for eventData2 for some graph events ***/ #define VAL_CURSOR 1 #define VAL_ANNOTATION 2 /* */
/* EVENTS: (for use in callback functions) */
/* Event numbers 1000 to 10000 are reserved for use by user programs (see QueueUserEvent()) */ /* Note: for callback functions: return 1 (true) to swallow mouse and key events. */ /* */
#define EVENT_NONE 0
#define EVENT_COMMIT 1 /* for menu selection events calling the main callback: */
/* eventData1 = panel for menu selections */ /* eventData2 = (int)(callbackData for menuItem) */
/* for table events calling the control callback: */ /* eventData1 = row of cell where event was generated; if 0, event affected multiple cells */
/* eventData2 = column of cell where event was generated; if 0, event affected multiple cells */
/* for tree events calling the control callback: */ /* eventData1 = MARK_STATE_CHANGE, ... */ /* eventData2 = depends on eventData1 */ #define EVENT_VAL_CHANGED 2 /* for table events calling the control callback: */ /* eventData1 = row of cell where event was generated; if 0, event affected multiple cells */
/* eventData2 = column of cell where event was generated; if 0, event affected multiple cells */
/* for tree events calling the control callback: */ /* eventData1 = ACTIVE_ITEM_CHANGE, ... */ /* eventData2 = depends on eventData1 */ #define EVENT_LEFT_CLICK 3 /* eventData1 = mouse vertical pos., */ /* eventData2 = mouse horizontal pos. */ #define EVENT_LEFT_DOUBLE_CLICK 4 /* eventData1 = mouse vertical pos., */ /* eventData2 = mouse horizontal pos. */ #define EVENT_RIGHT_CLICK 5 /* eventData1 = mouse vertical pos., */ /* eventData2 = mouse horizontal pos. */ #define EVENT_RIGHT_DOUBLE_CLICK 6 /* eventData1 = mouse vertical pos., */ /* eventData2 = mouse horizontal pos. */ #define EVENT_KEYPRESS 7 /* eventData1 = keypressed, */
/* eventData2 = pointer to keypressed */ #define EVENT_GOT_FOCUS 8 /* eventData1 = old control with focus */ #define EVENT_LOST_FOCUS 9 /* eventData1 = new control with focus */ #define EVENT_IDLE 10 #define EVENT_CLOSE 11 #define EVENT_PANEL_SIZE 12 #define EVENT_PANEL_MOVE 13
#define EVENT_END_TASK 14 /* sent to the MainCallback function when the system wants to quit */
#define EVENT_TIMER_TICK executable */
32-bit executable */
value and elapsed time
#define EVENT_DISCARD */
#define EVENT_EXPAND #define EVENT_COLLAPSE #define EVENT_DRAG #define EVENT_DROP #define EVENT_DROPPED #define EVENT_SORT #define EVENT_SELECTION_CHANGE #define EVENT_HSCROLL #define EVENT_VSCROLL #define EVENT_MARK_STATE_CHANGE #define EVENT_COMBO_BOX_INSERT generated */
generated */
#define EVENT_ACTIVE_CELL_CHANGE #define EVENT_ROW_SIZE_CHANGE #define EVENT_COLUMN_SIZE_CHANGE #define EVENT_ACTIVE_TAB_CHANGE #define EVENT_EDIT_MODE_STATE_CHANGE #define EVENT_MOUSE_POINTER_MOVE /* return 0L to quit, 1L to abort the termination */ 15 /* eventData1 = ptr to current time (*double) in 32-bit /* eventData2 = ptr to time since the control last received EVENT_TIMER_TICK (*double) in /* Use GetTimerTickData to retrieve current time values in a 64-bit executable */
16 /* sent to panels and controls when they are discarded 17 18 19 20 21 22 23 24 25 26
27 /* eventData1 = row of cell where event was /* eventData2 = column of cell where event was 28
29 /* eventData1 = row that was sized */ /* eventData2 = 0 */ 30 /* eventData1 = 0 */
/* eventData2 = column that was sized */ 31 /* eventData1 = old active tab */ /* eventData2 = new active tab */ 32 /* eventData1 = new edit state */ /* eventData2 = index */
33 /* eventData1 = mouse vertical position */
/* eventData2 = mouse hoizontal position */ #define EVENT_LEFT_CLICK_UP 34 /* eventData1 = mouse vertical position */ /* eventData2 = mouse hoizontal position */ #define EVENT_RIGHT_CLICK_UP 35 /* eventData1 = mouse vertical position */ /* eventData2 = mouse hoizontal position */
#define EVENT_MOUSE_WHEEL_SCROLL 36 /* eventData1 = scroll action (MOUSE_WHEEL_SCROLL_UP, etc) */
/* eventData2 = amount to scroll */
#define EVENT_PANEL_SIZING 37 /* eventData1 = sizing edge (PANEL_SIZING_TOPLEFT, etc) */
/* eventData2 = pointer to panel rect */ #define EVENT_PANEL_MOVING 38 /* eventData1 = not used */
/* eventData2 = pointer to panel rect */ #define EVENT_RADIX_CHANGE 39 /* eventData1 = new format */
#define EVENT_ZOOM 40 /* eventData1 = zoom action (ZOOM_IN, etc) */ #define EVENT_AXIS_VAL_CHANGE 41 /* eventData1 = axis that was changed (VAL_BOTTOM_XAXIS, etc) */
#define EVENT_INTERACTIVE_LEGEND 42 /* eventData1 = plot id */ /* eventData2 (VAL_PLOT_COLOR, etc) */
#define EVENT_TABLE_ROW_COL_LABEL_CLICK 43 /* eventData1 = row, eventData2 = col */ #define EVENT_BEGIN_EDIT_TREE_CELL 44 /* eventData1 = row, eventData2 = col */ #define EVENT_TREE_CELL_COMMIT 45 /* eventData1 = row, eventData2 = col */ #define EVENT_TREE_CELL_BEGIN_MENU 46
#define EVENT_TREE_CELL_ACTIVE_ITEM_CHANGE 47 /* eventData1 = row, eventData2 = col */ #define EVENT_TREE_CELL_VAL_CHANGED 48 /* eventData1 = row, eventData2 = col */
= built-in
control
menu id
/*** Event specifiers ***/
#define MARK_STATE_CHANGE 0 #define LABEL_CHANGE 1 #define LEFT_DOUBLE_CLICK 2 #define ENTER_KEY 3 #define ACTIVE_ITEM_CHANGE 4 #define COLUMN_LABEL_CLICK 5
/* Event specifiers for EVENT_MOUSE_WHEEL_SCROLL */ #define MOUSE_WHEEL_PAGE_UP 0 #define MOUSE_WHEEL_PAGE_DOWN 1 #define MOUSE_WHEEL_SCROLL_UP 2 #define MOUSE_WHEEL_SCROLL_DOWN 3 #define MOUSE_WHEEL_SCROLL_LEFT 4 #define MOUSE_WHEEL_SCROLL_RIGHT 5
/* Event specifiers for EVENT_PANEL_SIZING */
共分享92篇相关文档