scrollbar.h

来自「labview程序编程技巧演示」· C头文件 代码 · 共 47 行

H
47
字号
/**************************************************************************/
/* LabWindows/CVI User Interface Resource (UIR) Include File              */
/* Copyright (c) National Instruments 2006. All Rights Reserved.          */
/*                                                                        */
/* WARNING: Do not add to, delete from, or otherwise modify the contents  */
/*          of this include file.                                         */
/**************************************************************************/

#include <userint.h>

#ifdef __cplusplus
    extern "C" {
#endif

     /* Panels and Controls: */

#define  PANEL                           1
#define  PANEL_QUITBUTTON                2       /* callback function: QuitCallback */
#define  PANEL_GRAPH_VERTICAL            3       /* callback function: scrollbarCB */
#define  PANEL_NUMERIC_VERTICAL_WID      4       /* callback function: adjustvalue */
#define  PANEL_NUMERIC_VERTICAL_HEI      5       /* callback function: adjustvalue */
#define  PANEL_NUMERIC_VERTICAL_VIEW     6       /* callback function: adjustvalue */
#define  PANEL_NUMERIC_VERTICAL_MAX      7       /* callback function: adjustvalue */
#define  PANEL_NUMERIC_VERTICAL_MIN      8       /* callback function: adjustvalue */
#define  PANEL_NUMERIC_VERTICAL_VAL      9       /* callback function: adjustvalue */
#define  PANEL_COLORNUM_COLOR            10      /* callback function: adjustvalue */
#define  PANEL_TOGGLEBUTTON_MODE         11      /* callback function: adjustvalue */
#define  PANEL_DECORATION                12
#define  PANEL_TEXTMSG                   13


     /* Menu Bars, Menus, and Menu Items: */

          /* (no menu bars in the resource file) */


     /* Callback Prototypes: */ 

int  CVICALLBACK adjustvalue(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK QuitCallback(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK scrollbarCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);


#ifdef __cplusplus
    }
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?