资源描述
其实就是userint.h的内容(CVI 2009)
#ifndef USERINT_HEADER
#define USERINT_HEADER
#include "cvidef.h"
#include "cvirte.h"
#ifdef __cplusplus
extern "C" {
#endif
#if defined(_NI_mswin16_)
#define MAX_PATHNAME_LEN 80 /* includes nul byte */
#define MAX_DRIVENAME_LEN 3 /* includes nul byte */
#define MAX_DIRNAME_LEN 66 /* includes nul byte */
#define MAX_FILENAME_LEN 13 /* includes nul byte */
#elif defined(_NI_mswin32_) || defined(_NI_mswin64_)
#define MAX_PATHNAME_LEN 260 /* includes nul byte */
#define MAX_DRIVENAME_LEN 3 /* includes nul byte */
#define MAX_DIRNAME_LEN 256 /* includes nul byte */
#define MAX_FILENAME_LEN 256 /* includes nul byte */
#elif defined(_NI_linux_)
#define MAX_PATHNAME_LEN 1024 /* recommended buffer size for paths */
#define MAX_DRIVENAME_LEN 1 /* includes nul byte */
#define MAX_DIRNAME_LEN 256 /* includes nul byte */
#define MAX_FILENAME_LEN 256 /* recommended buffer size for file names */
#elif defined(_NI_unix_) || defined(_NI_sparc_)
#define MAX_PATHNAME_LEN 256 /* recommended buffer size for paths */
#define MAX_DRIVENAME_LEN 1 /* includes nul byte */
#define MAX_DIRNAME_LEN 256 /* includes nul byte */
#define MAX_FILENAME_LEN 256 /* recommended buffer size for file names */
#else
#error Undefined Platform. You need to add one of the
#error following to your compiler defines:
#error Platform Preprocessor directive
#error Microsoft Windows 3.1 #define _NI_mswin16_
#error Windows 95/NT #define _NI_mswin32_
#error Solaris 1 #define _NI_sparc_ 1
#error Solaris 2 #define _NI_sparc_ 2
#error HP-UX #define _NI_hpux_
#error
#error _NI_i386_ has been replaced with _NI_mswin16_.
#error See Programmers Reference Manual for more information.
#endif
#define MAX_TREE_ITEM_TAG_LEN 32 /* includes nul byte */
/* */
/* CONTROL STYLES: (for use in the NewCtrl() function) */
/* */
/*** numerics: ***/
#define CTRL_NUMERIC 100
#define CTRL_NUMERIC_THERMOMETER 101
#define CTRL_NUMERIC_TANK 102
#define CTRL_NUMERIC_GAUGE 103
#define CTRL_NUMERIC_METER 104
#define CTRL_NUMERIC_KNOB 105
#define CTRL_NUMERIC_DIAL 106
#define CTRL_NUMERIC_VSLIDE 107
#define CTRL_NUMERIC_HSLIDE 108
#define CTRL_NUMERIC_FLAT_VSLIDE 109
#define CTRL_NUMERIC_FLAT_HSLIDE 110
#define CTRL_NUMERIC_LEVEL_VSLIDE 111
#define CTRL_NUMERIC_LEVEL_HSLIDE 112
#define CTRL_NUMERIC_POINTER_VSLIDE 113
#define CTRL_NUMERIC_POINTER_HSLIDE 114
#define CTRL_NUMERIC_LS 115
#define CTRL_NUMERIC_THERMOMETER_LS 116
#define CTRL_NUMERIC_TANK_LS 117
#define CTRL_NUMERIC_GAUGE_LS 118
#define CTRL_NUMERIC_METER_LS 119
#define CTRL_NUMERIC_KNOB_LS 120
#define CTRL_NUMERIC_DIAL_LS 121
#define CTRL_NUMERIC_LEVEL_VSLIDE_LS 126
#define CTRL_NUMERIC_LEVEL_HSLIDE_LS 127
#define CTRL_NUMERIC_POINTER_VSLIDE_LS 128
#define CTRL_NUMERIC_POINTER_HSLIDE_LS 129
#define CTRL_COLOR_NUMERIC 130
#define CTRL_COLOR_NUMERIC_LS 131
#define CTRL_STRING 150
#define CTRL_STRING_LS 151
#define CTRL_TEXT_MSG 160
#define CTRL_TEXT_BOX 170
#define CTRL_TEXT_BOX_LS 171
/*** command buttons ***/
#define CTRL_SQUARE_COMMAND_BUTTON 200
#define CTRL_OBLONG_COMMAND_BUTTON 201
#define CTRL_ROUND_COMMAND_BUTTON 202
#define CTRL_ROUNDED_COMMAND_BUTTON 203
#define CTRL_PICTURE_COMMAND_BUTTON 204
#define CTRL_SQUARE_COMMAND_BUTTON_LS 205
#define CTRL_PICTURE_COMMAND_BUTTON_LS 206
/*** buttons ***/
#define CTRL_ROUND_BUTTON 220
#define CTRL_SQUARE_BUTTON 221
#define CTRL_ROUND_FLAT_BUTTON 222
#define CTRL_SQUARE_FLAT_BUTTON 223
#define CTRL_ROUND_RADIO_BUTTON 224
#define CTRL_SQUARE_RADIO_BUTTON 225
#define CTRL_CHECK_BOX 226
#define CTRL_ROUND_PUSH_BUTTON 227
#define CTRL_SQUARE_PUSH_BUTTON 228
#define CTRL_ROUND_PUSH_BUTTON2 229
#define CTRL_SQUARE_PUSH_BUTTON2 230
#define CTRL_SQUARE_TEXT_BUTTON 231
#define CTRL_OBLONG_TEXT_BUTTON 232
#define CTRL_ROUND_TEXT_BUTTON 233
#define CTRL_ROUNDED_TEXT_BUTTON 234
#define CTRL_PICTURE_TOGGLE_BUTTON 235
#define CTRL_SQUARE_BUTTON_LS 240
#define CTRL_PICTURE_TOGGLE_BUTTON_LS 241
#define CTRL_SQUARE_PUSH_BUTTON_LS 242
#define CTRL_SQUARE_TEXT_BUTTON_LS 243
/*** LED's ***/
#define CTRL_ROUND_LIGHT 260
#define CTRL_SQUARE_LIGHT 261
#define CTRL_ROUND_LED 262
#define CTRL_SQUARE_LED 263
#define CTRL_ROUND_LED_LS 264
#define CTRL_SQUARE_LED_LS 265
/*** binary switches ***/
#define CTRL_HSWITCH 280
#define CTRL_VSWITCH 281
#define CTRL_GROOVED_HSWITCH 282
#define CTRL_GROOVED_VSWITCH 283
#define CTRL_TOGGLE_HSWITCH 284
#define CTRL_TOGGLE_VSWITCH 285
#define CTRL_TOGGLE_HSWITCH_LS 288
#define CTRL_TOGGLE_VSWITCH_LS 289
/*** rings ***/
#define CTRL_RING 300
#define CTRL_RECESSED_MENU_RING 301
#define CTRL_MENU_RING 302
#define CTRL_POPUP_MENU_RING 303
#define CTRL_RING_VSLIDE 304
#define CTRL_RING_HSLIDE 305
#define CTRL_RING_FLAT_VSLIDE 306
#define CTRL_RING_FLAT_HSLIDE 307
#define CTRL_RING_LEVEL_VSLIDE 308
#define CTRL_RING_LEVEL_HSLIDE 309
#define CTRL_RING_POINTER_VSLIDE 310
#define CTRL_RING_POINTER_HSLIDE 311
#define CTRL_RING_THERMOMETER 312
#define CTRL_RING_TANK 313
#define CTRL_RING_GAUGE 314
#define CTRL_RING_METER 315
#define CTRL_RING_KNOB 316
#define CTRL_RING_DIAL 317
#define CTRL_PICTURE_RING 318
#define CTRL_RING_LS 319
#define CTRL_RECESSED_MENU_RING_LS 320
#define CTRL_MENU_RING_LS 321
#define CTRL_POPUP_MENU_RING_LS 322
#define CTRL_RING_LEVEL_VSLIDE_LS 327
#define CTRL_RING_LEVEL_HSLIDE_LS 328
#define CTRL_RING_POINTER_VSLIDE_LS 329
#define CTRL_RING_POINTER_HSLIDE_LS 330
#define CTRL_RING_THERMOMETER_LS 331
#define CTRL_RING_TANK_LS 332
#define CTRL_RING_GAUGE_LS 333
#define CTRL_RING_METER_LS 334
#define CTRL_RING_KNOB_LS 335
#define CTRL_RING_DIAL_LS 336
#define CTRL_PICTURE_RING_LS 337
#define CTRL_LIST 340
#define CTRL_LIST_LS 341
/*** decorations */
#define CTRL_RAISED_BOX 380
#define CTRL_RECESSED_BOX 381
#define CTRL_FLAT_BOX 382
#define CTRL_RAISED_CIRCLE 383
#define CTRL_RECESSED_CIRCLE 384
#define CTRL_FLAT_CIRCLE 385
#define CTRL_RAISED_FRAME 386
#define CTRL_RECESSED_FRAME 387
#define CTRL_FLAT_FRAME 388
#define CTRL_RAISED_ROUND_FRAME 389
#define CTRL_RECESSED_ROUND_FRAME 390
#define CTRL_FLAT_ROUND_FRAME 391
#define CTRL_RAISED_ROUNDED_BOX 392
#define CTRL_RECESSED_ROUNDED_BOX 393
#define CTRL_FLAT_ROUNDED_BOX 394
#define CTRL_RAISED_BOX_LS 395
#define CTRL_RECESSED_BOX_LS 396
#define CTRL_SMOOTH_VERTICAL_BOX_LS 397
#define CTRL_SMOOTH_HORIZONTAL_BOX_LS 398
#define CTRL_RECESSED_NARROW_FRAME 410
#define CTRL_GRAPH 440
#define CTRL_GRAPH_LS 441
#define CTRL_DIGITAL_GRAPH 450
#define CTRL_DIGITAL_GRAPH_LS 451
#define CTRL_STRIP_CHART 460
#define CTRL_STRIP_CHART_LS 461
#define CTRL_PICTURE 480
#define CTRL_PICTURE_LS 481
#define CTRL_TIMER 490
#define CTRL_CANVAS 500
#define CTRL_ACTIVEX 503
#define CTRL_TABLE 510
#define CTRL_TABLE_LS 511
#define CTRL_TREE 512
#define CTRL_TREE_LS 513
#define CTRL_HORIZONTAL_SPLITTER 520
#define CTRL_VERTICAL_SPLITTER 521
#define CTRL_HORIZONTAL_SPLITTER_LS 522
#define CTRL_VERTICAL_SPLITTER_LS 523
#define CTRL_TABS 540
/* */
/* ATTRIBUTES: (for use in the set and get attribute functions) */
/* Note that not all attributes apply to all objects. */
/* To find out which attributes are valid for a given object, */
/* open the function panel for the Set... or Get... function */
/* that corresponds to that object, and then click on its */
/* attribute selection control */
/* */
#define ATTR_DIMMED 500 /* int (boolean) */
#define ATTR_CONSTANT_NAME 501 /* (char *) (not settable) */
#define ATTR_CONSTANT_NAME_LENGTH 502 /* int (not settable) */
#define ATTR_CALLBACK_DATA 510 /* (void *) */
#define ATTR_CALLBACK_NAME 511 /* (char *) (not settable) */
#define ATTR_CALLBACK_NAME_LENGTH 512 /* int (not settable) */
#define ATTR_CALLBACK_FUNCTION_POINTER 513 /* (void *) */
#define ATTR_VISIBLE 530 /* int (boolean) */
#define ATTR_LEFT 531 /* int (-32768 - 32767) */
#define ATTR_TOP 532 /* int (-32768 - 32767) */
#define ATTR_WIDTH 533 /* int (0-32767) */
#define ATTR_HEIGHT 540 /* int (0-32767) */
#define ATTR_FRAME_COLOR 550 /* int (rgb value) */
#define ATTR_SCROLL_BARS 551 /* int: VAL_NO_SCROLL_BARS, ... */
#define ATTR_SCROLL_BAR_COLOR 552 /* int (rgb value) */
#define ATTR_HSCROLL_OFFSET 560 /* int (in pixels) */
#define ATTR_HSCROLL_OFFSET_MAX 561 /* int (in pixels) */
#define ATTR_BACKCOLOR 570 /* int (rgb value) */
#define ATTR_TITLEBAR_VISIBLE 571 /* int (boolean) */
#define ATTR_TITLEBAR_THICKNESS 572 /* int */
#define ATTR_TITLEBAR_ACTUAL_THICKNESS 632 /* int (not settable) */
#define ATTR_TITLE 573 /* (char *) */
#define ATTR_TITLE_LENGTH 574 /* int (not settable) */
#define ATTR_TITLE_COLOR 575 /* int (rgb value) */
#define ATTR_TITLE_BACKCOLOR 576 /* int (rgb value) */
#define ATTR_FRAME_STYLE 577 /* int: VAL_OUTLINED_FRAME, ... */
#define ATTR_FRAME_THICKNESS 578 /* int */
#define ATTR_FRAME_ACTUAL_WIDTH 633 /* int (not settable) */
#define ATTR_FRAME_ACTUAL_HEIGHT 634 /* int (not settable) */
#define ATTR_MENU_HEIGHT 579 /* int */
#define ATTR_MENU_WIDTH 635 /* int */
#define ATTR_SIZABLE 580 /* int (boolean) */
#define ATTR_MOVABLE 581 /* int (boolean) */
#define ATTR_NUM_CTRLS 582 /* int (not settable) */
#define ATTR_MOUSE_CURSOR 583 /* int: VAL_DEFAULT_CURSOR, ... */
#define ATTR_TITLE_FONT 584 /* (char *) */
#define ATTR_TITLE_CHARACTER_SET 631 /* int: VAL_ANSI_CHARSET, ... */
#define ATTR_TITLE_ITALIC 585 /* int (boolean) */
#define ATTR_TITLE_UNDERLINE 586 /* int (boolean) */
#define ATTR_TITLE_STRIKEOUT 587 /* int (boolean) */
#define ATTR_TITLE_POINT_SIZE 588 /* int (1-255) */
#define ATTR_TITLE_BOLD 589 /* int (boolean) */
#define ATTR_TITLE_FONT_NAME_LENGTH 590 /* int (not settable) */
#define ATTR_MENU_BAR_VISIBLE 591 /* int (boolean) */
#define ATTR_CLOSE_CTRL 592 /* int (ctrl Id) */
#define ATTR_VSCROLL_OFFSET 593 /* int (in pixels) */
#define ATTR_VSCROLL_OFFSET_MAX 594 /* int (in pixels) */
#define ATTR_PARENT_SHARES_SHORTCUT_KEYS 595 /* int (boolean) */
#define ATTR_ACTIVATE_WHEN_CLICKED_ON 596 /* int (boolean) */
#define ATTR_WINDOW_ZOOM 597 /* int: VAL_MINIMIZE, ... */
#define ATTR_SYSTEM_WINDOW_HANDLE 598 /* intptr_t (HWND, or X-Window) */
#define ATTR_CAN_MINIMIZE 599 /* int (boolean) */
#define ATTR_CAN_MAXIMIZE 600 /* int (boolean) */
#define ATTR_CLOSE_ITEM_VISIBLE 601 /* int (boolean) */
#define ATTR_SYSTEM_MENU_VISIBLE 602 /* int (boolean) */
#define ATTR_PANEL_MENU_BAR_CONSTANT 603 /* (char *) */
#define ATTR_PANEL_MENU_BAR_CONSTANT_LENGTH 604 /* int (not settable) */
#define ATTR_TITLE_SIZE_TO_FONT 605 /* int (boolean) */
#define ATTR_PANEL_PARENT 606 /* int (not settable) */
#define ATTR_NUM_CHILDREN 607 /* int (not settable) */
#define ATTR_FIRST_CHILD 608 /* int (not settable) */
#define ATTR_NEXT_PANEL 609 /* int (not settable) */
#define ATTR_ZPLANE_POSITION 610 /* int (0 - numObjects-1) */
#define ATTR_CTRL_STYLE 611
展开阅读全文