2 #include "ScopeScrollbarCtrl.h"
3 #include "helpers/ScopeNumber.h"
12 , smallincrement((_smallincrement==0.0)?(scopenum->ul()-scopenum->ll()) / 100:_smallincrement)
13 , largeincrement((_largeincrement==0.0)?(scopenum->ul()-scopenum->ll()) / 20:_largeincrement) {
16 if ( _connectcontrolstate )
26 if ( SubclassWindow(hWnd) ) {
28 SetScrollRange(0, 100, TRUE);
38 if ( nSBCode == SB_THUMBPOSITION )
41 if ( (nSBCode == SB_LINEUP) || (nSBCode == SB_LINELEFT) )
43 if ( (nSBCode == SB_LINEDOWN) || (nSBCode == SB_LINERIGHT) )
46 if ( (nSBCode == SB_PAGEUP) || (nSBCode == SB_PAGELEFT) )
48 if ( (nSBCode == SB_PAGEDOWN) || (nSBCode == SB_PAGERIGHT) )
56 ::PostMessage(GetParent(), WM_NEXTDLGCTL,
shiftstate, 0L);
61 return DefWindowProc(uMsg, wParam, lParam);
69 return DefWindowProc(uMsg, wParam, lParam);
79 ::PostMessage(m_hWnd, WM_UPDATECONTROL, NULL, NULL);
boost::signals2::connection ConnectGUI(signalchange_t::slot_type slot)
Connect signal to slot to GUI.
virtual T Set(const T &_v, const bool &_callguisignal=true, const bool &_callothersignal=true, const bool &_callatnochange=false)
Sets the value and calls both change signals if the value actually changed.
This is the include file for standard system include files, or project specific include files that ar...
boost::signals2::connection ConnectState(signalstate_t::slot_type slot)
Connect signal to slot for state changes.
Various helper functions and classes for Scope.