BCGSuite for MFC
CBCGPDurationCtrl

Detailed Description

The CBCGPDurationCtrl object encapsulates the functionality of a time duration control. This control has several customizable fields displaying days, hours, minutes and seconds of the duration data stored in the control. You can change the set of displayed fields by calling method SetState().

Note, that fields lengths are limited: full set controls up to 999 days 23 hours and 59 minutes, hours and minutes set is limited to control up to 999 hours and 59 minutes, if the only displayed field is minutes the duration control data is limited up to 99999 minutes.

The CBCGPDurationCtrl object notifies its parent about duration changing by WM_COMMAND | BN_CLICKED notification. The parent may retrieve the current duration by calling GetDuration() method.

Inherits CButton.

Public Member Functions

 CBCGPDurationCtrlThe constructor.
 
 EnableVisualManagerStyleEnables the visual manager style.
 
 GetAutoResizeTells whether automatic resizing is enabled, or disabled.
 
 GetBackgroundColorReturns the current background color.
 
 GetCyclicScrollGets control spin behaviur.
 
 GetDurationReturns current duration.
 
 GetStateReturns the state of control parts.
 
 GetTextColorReturns the current text color.
 
 IsVisualManagerStyleTells whether a window uses visual manager style.
 
 SetAutoResizeEnables or disables automatic resizing.
 
 SetBackgroundColorSets a new background color.
 
 SetCyclicScrollSpecifies control spin behaviur.
 
 SetDurationSets current duration.
 
 SetStateSets the state of control parts.
 
 SetTextColorSets a new text color.