Scope
|
#include <ScopeProgressCtrl.h>
Inherits CWindowImpl< CScopeProgressCtrl, CProgressBarCtrl >.
Public Member Functions | |
* | CScopeProgressCtrl (ScopeNumber< double > *_scopenum) |
~CScopeProgressCtrl () | |
BOOL | AttachToDlgItem (HWND hWnd) |
Called via Win32 messages | |
LRESULT | OnUpdateControl (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled) |
These send async Win32 messages | |
/** | |
void | UpdateControl () |
Protected Attributes | |
bool | created |
ScopeNumber< double > *const | scopenum |
boost::signals2::connection | valueconnection |
An adapted CProgressBarCtrl control around a ScopeNumber<double>.
Progress bar is scaled from scopenum's lower to upper limit.
Definition at line 11 of file ScopeProgressCtrl.h.
scope::gui::CScopeProgressCtrl::CScopeProgressCtrl | ( | ScopeNumber< double > * | _scopenum | ) |
()
Gets a pointer to the ScopeNumber<double>, and connects
[in] | _scopenum | ScopeNumber to which the progress bar connects |
Definition at line 9 of file ScopeProgressCtrl.cpp.
scope::gui::CScopeProgressCtrl::~CScopeProgressCtrl | ( | ) |
Disconnects.
Definition at line 15 of file ScopeProgressCtrl.cpp.
BOOL scope::gui::CScopeProgressCtrl::AttachToDlgItem | ( | HWND | hWnd | ) |
Attach the control to a dialog item and set range.
Definition at line 19 of file ScopeProgressCtrl.cpp.
LRESULT scope::gui::CScopeProgressCtrl::OnUpdateControl | ( | UINT | uMsg, |
WPARAM | wParam, | ||
LPARAM | lParam, | ||
BOOL & | bHandled | ||
) |
Worker for UpdateControl.
Definition at line 29 of file ScopeProgressCtrl.cpp.
void scope::gui::CScopeProgressCtrl::UpdateControl | ( | ) |
Updates the position from the ScopeNumber.
Definition at line 35 of file ScopeProgressCtrl.cpp.
|
protected |
true if window created
Definition at line 16 of file ScopeProgressCtrl.h.
|
protected |
Pointer to the underlying ScopeNumber.
Definition at line 19 of file ScopeProgressCtrl.h.
|
protected |
The connection object for the control state (connection to the scopenum value change)
Definition at line 22 of file ScopeProgressCtrl.h.