3 #include "helpers/ScopeValue.h"
4 #include "ScopeDefines.h"
12 public CWindowImpl<CScopeCheckBoxCtrl, CButton> {
36 DEFAULT_REFLECTION_HANDLER()
59 LRESULT
OnKeyDown(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
62 LRESULT
OnKeyUp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
65 LRESULT
OnKillFocus(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
68 LRESULT
OnUpdateControl(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
LRESULT OnKeyUp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Resets state of shift key.
bool created
true after window creation
void SetState(const bool &state)
Sets the enabled/disabled state of the control.
boost::signals2::connection valueconnection
The connection object for the control state (connection to the scope_val value change) ...
void OnReflectedCommand(UINT uNotifyCode, int nID, CWindow wndCtl)
Updates value on reflected BN_CLICKED.
LRESULT OnKeyDown(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Switches to next control on return or tab and updates ScopeValue scope_val Also sets state of shift k...
LRESULT OnUpdateControl(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Worker for UpdateControl.
LRESULT OnKillFocus(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Update scope_val when leaving focus.
ScopeValue< bool > *const scope_val
pointer to underlying ScopeValue
bool shiftstate
stores state of shift key
bool AttachToDlgItem(HWND hWnd)
Attach the control to a dialog item.
boost::signals2::connection stateconnection
The connection object for the control state (connection to the scopenum rw state change) ...
void UpdateValue()
Updates the ScopeValue from the string inside the control.
An adapted CButton control as checkbox around a ScopeValue.
void UpdateControl()
Updates the string inside the control from the ScopeValues' value.