soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SSliderBar Class Reference

滑块工具条 More...

#include <SSliderBar.h>

Inheritance diagram for SSliderBar:
SProgress

Public Types

enum  { SC_RAIL , SC_SELECT , SC_THUMB , SC_RAILBACK }
 

Public Member Functions

 SSliderBar ()
 构造函数
 
 ~SSliderBar ()
 析构函数
 
BOOL SetValue (int nValue) OVERRIDE
 
- Public Member Functions inherited from SProgress
 SProgress ()
 构造函数
 
BOOL SetValue (int nValue) OVERRIDE
 设置进度条进度值
 
int GetValue () SCONST OVERRIDE
 获取进度值
 
void SetRange (int nMin, int nMax) OVERRIDE
 设置进度值最小大值
 
void GetRange (int *pMin, int *pMax) SCONST OVERRIDE
 获取进度值最小大值
 
BOOL IsVertical () SCONST OVERRIDE
 判断进度条是否为竖直状态
 

Protected Member Functions

int HitTest (CPoint pt)
 测试点
 
void ShowValueInTip (int nValue)
 
LRESULT NotifyPos (SliderBarAction action, int value)
 通知
 
SIZE GetDesiredSize (int nParentWid, int nParentHei)
 获取大小
 
virtual void OnColorize (COLORREF cr)
 处理颜色化事件
 
virtual void OnScaleChanged (int scale)
 处理缩放变化事件
 
CRect GetPartRect (UINT uSBCode)
 
RANGE _GetPartRange (int nLength, int nThumbSize, BOOL bThumbInRail, int nMin, int nMax, int nValue, UINT uSBCode)
 
void OnPaint (IRenderTarget *pRT)
 绘制
 
void OnLButtonUp (UINT nFlags, CPoint point)
 左键抬起
 
void OnLButtonDown (UINT nFlags, CPoint point)
 左键按下
 
void OnMouseMove (UINT nFlags, CPoint point)
 鼠标移动
 
void OnMouseLeave ()
 鼠标移动事件
 
virtual HRESULT SetAttribute (const SNS::SStringW &amp;amp;amp;amp;strAttribName, const SNS::SStringW &amp;amp;amp;amp;strValue, BOOL bLoading=FALSE)
 
- Protected Member Functions inherited from SProgress
void GetDesiredSize (SIZE *psz, int wid, int hei) OVERRIDE
 获取预期大小
 
void OnPaint (IRenderTarget *pRT)
 绘制控件
 
int OnCreate (void *)
 处理创建事件
 

Protected Attributes

BOOL m_bDrag
 
CPoint m_ptDrag
 
int m_nDragValue
 
int m_uHtPrev
 
SAutoRefPtr< ISkinObjm_pSkinThumb
 
BOOL m_bThumbInRail
 
BOOL m_bDrawRail
 
BOOL m_bDragTip
 
- Protected Attributes inherited from SProgress
int m_nMinValue
 进度最小值
 
int m_nMaxValue
 进度最大值
 
int m_nValue
 进度值
 
BOOL m_bShowPercent
 是否显示百分比
 
BOOL m_bVertical
 是否竖直状态
 
SAutoRefPtr< ISkinObjm_pSkinBg
 背景资源
 
SAutoRefPtr< ISkinObjm_pSkinPos
 前景资源
 

Detailed Description

滑块工具条

Describe 滑块工具条

Definition at line 24 of file SSliderBar.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Definition at line 50 of file SSliderBar.h.

Constructor & Destructor Documentation

◆ SSliderBar()

SSliderBar::SSliderBar ( )

构造函数

SSliderBar::SSliderBar

Describe 构造函数

Definition at line 10 of file SSliderBar.cpp.

◆ ~SSliderBar()

SSliderBar::~SSliderBar ( )

析构函数

SSliderBar::~SSliderBar

Describe 析构函数

Definition at line 22 of file SSliderBar.cpp.

Member Function Documentation

◆ _GetPartRange()

SSliderBar::RANGE SSliderBar::_GetPartRange ( int nLength,
int nThumbSize,
BOOL bThumbInRail,
int nMin,
int nMax,
int nValue,
UINT uSBCode )
protected

Definition at line 45 of file SSliderBar.cpp.

◆ GetDesiredSize()

SIZE SSliderBar::GetDesiredSize ( int nParentWid,
int nParentHei )
protected

获取大小

SSliderBar::GetDesiredSize

Parameters
intwid – 容器宽度
inthei – 容器高度
Returns
返回CSize

Describe 获取大小

Definition at line 269 of file SSliderBar.cpp.

◆ GetPartRect()

CRect SSliderBar::GetPartRect ( UINT uSBCode)
protected

SSliderBar::GetPartRect

Parameters
UINTuSBCode

Describe

Definition at line 88 of file SSliderBar.cpp.

◆ HitTest()

int SSliderBar::HitTest ( CPoint pt)
protected

测试点

SSliderBar::HitTest

Parameters
CPointpt – 坐标

Describe 测试某个点是否在滚动条上

Definition at line 26 of file SSliderBar.cpp.

◆ NotifyPos()

LRESULT SSliderBar::NotifyPos ( SliderBarAction action,
int value )
protected

通知

SSliderBar::NotifyPos

Parameters
SliderBarActionaction – 消息码
intvalue – 值

Describe 自定义消息响应函数

Definition at line 261 of file SSliderBar.cpp.

◆ OnColorize()

void SSliderBar::OnColorize ( COLORREF cr)
protectedvirtual

处理颜色化事件

Parameters
cr颜色

Reimplemented from SProgress.

Definition at line 292 of file SSliderBar.cpp.

◆ OnLButtonDown()

void SSliderBar::OnLButtonDown ( UINT nFlags,
CPoint point )
protected

左键按下

SSliderBar::OnLButtonDown

Parameters
UINTnFlags – 虚拟键标志
CPointpoint – 坐标

Describe 消息响应函数

Definition at line 175 of file SSliderBar.cpp.

◆ OnLButtonUp()

void SSliderBar::OnLButtonUp ( UINT nFlags,
CPoint point )
protected

左键抬起

SSliderBar::OnLButtonUp

Parameters
UINTnFlags – 虚拟键标志
CPointpoint – 坐标

Describe 消息响应函数

Definition at line 157 of file SSliderBar.cpp.

◆ OnMouseLeave()

void SSliderBar::OnMouseLeave ( )
protected

鼠标移动事件

SSliderBar::OnMouseLeave

Describe 消息响应函数

Definition at line 250 of file SSliderBar.cpp.

◆ OnMouseMove()

void SSliderBar::OnMouseMove ( UINT nFlags,
CPoint point )
protected

鼠标移动

SSliderBar::OnMouseMove

Parameters
UINTnFlags – 虚拟键标志
CPointpoint – 坐标

Describe 消息响应函数

Definition at line 211 of file SSliderBar.cpp.

◆ OnPaint()

void SSliderBar::OnPaint ( IRenderTarget * pRT)
protected

绘制

SSliderBar::OnPaint

Parameters
IRenderTarget* pRT – 绘画设备

Describe 绘制

Definition at line 125 of file SSliderBar.cpp.

◆ OnScaleChanged()

void SSliderBar::OnScaleChanged ( int scale)
protectedvirtual

处理缩放变化事件

Parameters
scale缩放比例

Reimplemented from SProgress.

Definition at line 299 of file SSliderBar.cpp.

◆ SetAttribute()

virtual HRESULT SSliderBar::SetAttribute ( const SNS::SStringW &amp;amp;amp;amp; strAttribName,
const SNS::SStringW &amp;amp;amp;amp; strValue,
BOOL bLoading = FALSE )
inlineprotectedvirtual

Reimplemented from SProgress.

Definition at line 173 of file SSliderBar.h.

◆ SetValue()

BOOL SSliderBar::SetValue ( int nValue)

Definition at line 305 of file SSliderBar.cpp.

◆ ShowValueInTip()

void SSliderBar::ShowValueInTip ( int nValue)
protected

Definition at line 312 of file SSliderBar.cpp.

Member Data Documentation

◆ m_bDrag

BOOL SSliderBar::m_bDrag
protected

是否允许拖动

Definition at line 71 of file SSliderBar.h.

◆ m_bDragTip

BOOL SSliderBar::m_bDragTip
protected

拖动滑块时在tip中显示数值

Definition at line 79 of file SSliderBar.h.

◆ m_bDrawRail

BOOL SSliderBar::m_bDrawRail
protected

绘制轨道

Definition at line 78 of file SSliderBar.h.

◆ m_bThumbInRail

BOOL SSliderBar::m_bThumbInRail
protected

滑块包含在轨道中

Definition at line 77 of file SSliderBar.h.

◆ m_nDragValue

int SSliderBar::m_nDragValue
protected

拖动距离

Definition at line 73 of file SSliderBar.h.

◆ m_pSkinThumb

SAutoRefPtr<ISkinObj> SSliderBar::m_pSkinThumb
protected

皮肤对象

Definition at line 76 of file SSliderBar.h.

◆ m_ptDrag

CPoint SSliderBar::m_ptDrag
protected

拖动位置

Definition at line 72 of file SSliderBar.h.

◆ m_uHtPrev

int SSliderBar::m_uHtPrev
protected

上次的鼠标位置

Definition at line 74 of file SSliderBar.h.


The documentation for this class was generated from the following files: