6#ifndef __SSPINBUTTONCTRL__H__
7#define __SSPINBUTTONCTRL__H__
10#include <interface/SCtrl-i.h>
11#include <proxy/SWindowProxy.h>
25 DEF_SOBJECT(
SWindow, L
"spinButton")
49 STDMETHOD_(
void,
SetValue)(THIS_
int nValue) OVERRIDE;
56 STDMETHOD_(
void,
SetRange)(THIS_
int nMin,
int nMax) OVERRIDE;
62 STDMETHOD_(
void,
SetStep)(THIS_ UINT nStep) OVERRIDE;
68 STDMETHOD_(
int,
GetValue)(THIS) SCONST OVERRIDE;
74 STDMETHOD_(IWindow *,
GetIBuddy)(THIS) SCONST OVERRIDE;
83 STDMETHOD_(
void,
GetDesiredSize)(THIS_ SIZE *psz,
int nParentWid,
int nParentHei) OVERRIDE;
105 void OnValueChanged(
bool bInit =
false);
144 void OnTimer(
char cTimerId);
151 BOOL OnBuddyChange(IEvtArgs *pEvt);
169 MSG_WM_CREATE(OnCreate)
170 MSG_WM_LBUTTONDOWN(OnLButtonDown)
171 MSG_WM_LBUTTONDBLCLK(OnLButtonDown)
172 MSG_WM_MOUSEMOVE(OnMouseMove)
173 MSG_WM_LBUTTONUP(OnLButtonUp)
174 MSG_WM_PAINT_EX(OnPaint)
175 MSG_WM_TIMER_EX(OnTimer)
185 HRESULT OnAttrValue(const
SStringW &strValue, BOOL bLoading);
191 ATTR_INT(L
"max",
m_nMax, FALSE)
192 ATTR_INT(L
"min",
m_nMin, FALSE)
194 ATTR_UINT(L
"step",
m_uStep, FALSE)
Smart pointer class for managing COM-style reference-counted objects.
A class representing an ASCII string.
void OnMouseMove(UINT nFlags, CPoint pt)
Handles the mouse move event.
void OnPaint(IRenderTarget *pRT)
Handles the painting of the window.
virtual void OnScaleChanged(int scale)
Called when the scale of the window changes.
int OnCreate(LPVOID)
Handles the creation of the window.
void OnLButtonUp(UINT nFlags, CPoint pt)
Handles the left mouse button up event.
void OnLButtonDown(UINT nFlags, CPoint pt)
Handles the left mouse button down event.
virtual void OnColorize(COLORREF cr)
Adjusts the color tone of the window.
Interface for rendering target objects.
Interface for Skin Objects.