![]() |
Scope
|
#include <ScopeUpDownCtrl.h>
Inherits CWindowImpl< CScopeUpDownCtrl< ValT >, CUpDownCtrl >.
Public Member Functions | |
| * | CScopeUpDownCtrl (ScopeNumber< ValT > *_scopeval, const ValT &_increment, const bool &_connectback=false, const bool &_connectcontrolstate=false) |
| ~CScopeUpDownCtrl (void) | |
| bool | AttachToDlgItem (HWND hWnd) |
| void | UpdateValue () |
| void | SetState (const bool &state) |
Called via Win32 messages | |
| LRESULT | OnUpDown (int idCtrl, LPNMHDR pnmh) |
Protected Attributes | |
| bool | created |
| ScopeNumber< ValT > *const | scopeval |
| boost::signals2::connection | stateconnection |
| const ValT | increment |
| bool | incdec |
An adapted CUpDownCtrl control around a ScopeNumber.
Do not use buddy features etc. in the resource editor, we rely solely on the ScopeNumber magic.
Definition at line 12 of file ScopeUpDownCtrl.h.
|
inline |
()
Gets a pointer to the ScopeNumber and connects if desired
| [in] | _scopeval | ScopeNumber to which the up down control connects (taken by reference) |
| [in] | _increment | discrete increment of underlying ScopeNumber, should be bigger than 0 |
| [in] | _connectback | change ScopeNumber when up/down is clicked |
| [in] | _connectcontrolstate | change up/down enabled/disabled state when read/write state is set at the ScopeNumber |
Definition at line 42 of file ScopeUpDownCtrl.h.
|
inline |
Disconnects everything.
Definition at line 51 of file ScopeUpDownCtrl.h.
|
inline |
Attach the control to a dialog item.
Definition at line 56 of file ScopeUpDownCtrl.h.
|
inline |
Checks if the reflected notify is for this window and an UDN_DELTAPOS and calls UpdateVale accordingly.
Definition at line 67 of file ScopeUpDownCtrl.h.
|
inline |
Updates the ScopeValue by incrementing or decrementing.
Definition at line 83 of file ScopeUpDownCtrl.h.
|
inline |
Sets the enabled/disabled control state.
Definition at line 91 of file ScopeUpDownCtrl.h.
|
protected |
true if window created
Definition at line 17 of file ScopeUpDownCtrl.h.
|
protected |
pointer to the underlying ScopeNumber
Definition at line 20 of file ScopeUpDownCtrl.h.
|
protected |
The connection object for the control state (connection to the scopenum rw state change)
Definition at line 23 of file ScopeUpDownCtrl.h.
|
protected |
ScopeNumber is incremented/decremented by this value.
Definition at line 26 of file ScopeUpDownCtrl.h.
|
protected |
does the next OnUpdateControl increment (true) or decrement (false)
Definition at line 29 of file ScopeUpDownCtrl.h.