Scope
scope::gui::CScopeProgressCtrl Class Reference

#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
 

Detailed Description

An adapted CProgressBarCtrl control around a ScopeNumber<double>.

Progress bar is scaled from scopenum's lower to upper limit.

Warning
Needs message reflection in containing (dialog) window via REFLECT_NOTIFICATIONS()

Definition at line 11 of file ScopeProgressCtrl.h.

Constructor & Destructor Documentation

scope::gui::CScopeProgressCtrl::CScopeProgressCtrl ( ScopeNumber< double > *  _scopenum)

()

Gets a pointer to the ScopeNumber<double>, and connects

Parameters
[in]_scopenumScopeNumber 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.

Member Function Documentation

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.

Member Data Documentation

bool scope::gui::CScopeProgressCtrl::created
protected

true if window created

Definition at line 16 of file ScopeProgressCtrl.h.

ScopeNumber<double>* const scope::gui::CScopeProgressCtrl::scopenum
protected

Pointer to the underlying ScopeNumber.

Definition at line 19 of file ScopeProgressCtrl.h.

boost::signals2::connection scope::gui::CScopeProgressCtrl::valueconnection
protected

The connection object for the control state (connection to the scopenum value change)

Definition at line 22 of file ScopeProgressCtrl.h.


The documentation for this class was generated from the following files: