⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slider.h

📁 rtCell 实时微内核-具有下列功能: 1. 完全抢占的实时微内核结构
💻 H
字号:
/*
 *******************************************************************************
 *                      The real-time kernel "rtCell"                          *
 *              Copyright 2005 taowentao, allrights reserved.                  *
 * File : Slider.h                                                             *
 * By   : taowentao     2006-09-02, 2007-05-12                                 *
 *******************************************************************************
 */

#if !defined(SLIDER_H)
#define SLIDER_H

#if !defined(CONTROL_H)
#include "giCell\Wins\include\Control.h"
#endif

/*
 *******************************************************************************
 *                                                                             *
 *******************************************************************************
 */

#define CTRL_CAN_DRAG_SLIDER    (0x0200)

#define SLIDERBOX_W    (12)
#define SLIDERBOX_H    (24)
#define BOX_YOFF  (10)
#define HLINE_H   (3)
#define LINE_H    (2)
#define SLOT_XOFF (5)
#define SLOT_H    (4)
#define SCALES    (10)

typedef struct {
    VIEW *pView;
    COLOR SliderColor; 
    PSLIDER pOnSlider; 
    CWORD Status;
    CWORD Align;
    int Min, Max, Value;
    int Scales; 
} SLIDER;  

/*
 *******************************************************************************
 *                                                                             *
 *******************************************************************************
 */

SLIDER* CreateSlider(int left, int top, int width, int height, VIEW* pParent,
	                 PSLIDER pOnSlider, CWORD Style, int value, int min, int max);
void DeleteSlider(SLIDER *pSlider);
void SetSliderValue(SLIDER *pSlider, const int value);

/*
 *******************************************************************************
 *                                                                             *
 *******************************************************************************
 */
#endif /* end of Slider.h */

⌨️ 快捷键说明

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