Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

Classes

~CExtDurationWnd Destructor.
AdjustSize Updates the size of the duration window.
CExtDurationWnd Constructor.
Create Creates the time duration window.
IsItemVisible Returns true if the field specified by eItem is visible; false otherwise.
IsDropDownButtonVisible Returns true if the drop-down button is visible or false otherwise.
IsFirstVisibleItem Returns true if the specified field is the first visible field; false otherwise.
IsLastVisibleItem �Returns true if the specified field is the last visible field; false otherwise.
IsReadOnly Call this method to determine if the duration control is read-only. When the control is read-only it is not in the disabled state but any updates of the value are prevented.
IsSpinButtonVisible �Returns true if the spin button is visible or false otherwise.
ItemGet Returns a pointer to the ITEM_INFO structure that holds information about the specified field of the time duration control. The method returns NULL if failed.
HitTestItem Performs hit testing and a pointer to the ITEM_INFO structure that holds information about the field that covers the specified point. The method returns NULL if there is no field is found.
GetBkColor Returns the background color of the time duration window. The returned value that is equal to COLORREF(-1) means that the default background color is consistent with the currently selected user interface theme.
GetContinuousScrolling Returns true if the continuous scrolling is turned on; false otherwise. The continuous scrolling means, if you change the value of any field, it can affect other fields (e.g. adding one minute to 59 minutes results in that minutes are set to 0 and hours are increased by one).
GetDuration Returns the COleDateTimeSpan object represents the time span.
GetStatus Returns the status of the time duration control.
GetTextColor Returns the text color of the time duration window. The returned value that is equal to COLORREF(-1) means that the default text color is consistent with the currently selected user interface theme.
RegisterWndClass Registers a new window class for the time duration control.
ScrollCurrentItem Scrolls the current field.
SelectionGet Returns a pointer to the ITEM_INFO structure that holds information about the currently selected field. The method returns NULL if no field is selected.
SelectItem Selects the specified field in the time duration control and returns true if succeeded or false otherwise.
SelectFirsItem Selects the first visible field in the time duration control and returns true if succeeded or false otherwise.
SelectLastItem Selects the last visible field in the time duration control and returns true if succeeded or false otherwise.
SelectNextItem Selects the next visible field in the time duration control which comes after the field specified by the pII argument and returns true if succeeded or false otherwise.
SelectPrevItem Selects the previous visible field in the time duration control which comes before the field specified by the pII argument and returns true if succeeded or false otherwise.
SetBkColor Sets the background color for the time duration control.
SetContinuousScrolling Turns on or off the continuous scrolling The continuous scrolling means, if you change the value of any field, it can affect other fields (e.g. adding one minute to 59 minutes results in that minutes are set to 0 and hours are increased by one).
SetDuration Sets a new time span value for the time duration control.
SetReadOnly Sets the read-only state of the duration control.
SetShowItem Shows/hides the specified field in the time duration control.
SetStatus Sets the status of the time duration control.
SetTextColor Sets the text color of the time duration control.
ShowDropDownButton Shows/hides the drop-down button
ShowSpinButton �Shows/hides the spin button.
UpdateDurationWnd Recalculates the control's layout and redraws the time duration control window.

Overridables

OnAutoSelectNextItem Called when the control is about to select the next item after input in some item is complete and the AutoSelectNext mode is turned on.
OnCalcContentSize Called to calculate the size of all visible fields in pixels.
OnDigitPressed Called when a digit key is pressed.
OnDurationDrawBorder Called to redraw the border of the time duration control window.
OnDurationDrawEntire Called to redraw the content of the entire duration control window.
OnDurationEraseClientArea Called to redraw the background of the entire duration control window.
OnInitializeItemDay Called to initialize the day field.
OnInitializeItemDesignator Called to initialize the designator field, which is used only in CExtDateTimeWnd which is a CExtDuration-derived class.
OnInitializeItemMinute Called to initialize the minute field.
OnInitializeItemMonth Called to initialize the month field.
OnInitializeItemHour Called to initialize the hour field.
OnInitializeItemsArray Called to initialize all fields of the time duration control.
OnInitializeItemSecond Called to initialize the second field.
OnInitializeItemYear Called to initialize the year field.
OnItemSelectionChanged Called when the selected field is changed.
OnItemSyncVisibility Called to update the visibility state of the specified field.
OnQueryBorderSize Retrieves the size of the time duration control border (i.e. how many pixels are reserved for the border).
OnQueryDateSeparator Returns the character(s) used for the date separator.
OnQueryDayLeadingZeros Returns the specification for leading zeros in the day field for the short date format only. The valid values: 0 (no leading zeros for days) or 1(leading zeros for days).
OnQueryDropDownButtonWidth Retrieves the width, in pixels, of the drop-down button, which is used only in CExtDateTimeWnd, which is a CExtDuration-derived class.
OnQueryFont Returns a HFONT handle used for painting text or for measuring the layout of the time duration control.
OnQueryHourLeadingZeros Returns the specification for leading zeros in the time field. The valid values: 0 (no leading zeros for hours) or 1(leading zeros for hours).
OnQueryItemBkColor Returns a COLORREF value used for painting the background of the specified field.
OnQueryItemMargins Called to measure outer margins of the specified field.
OnQueryItemText Called to retrieve the text for the specified field. The method returns a CExtSafeString object used for the text representation of the field.
OnQueryItemTextColor Returns a COLORREF value used for painting the text of the specified field.
OnQueryNotificationReceiver Returns a handle to the window which receives notification messages. By default, it is a handle to the parent window. You can specify your own window to receive notification messages: Set a valid window handle for the m_hWndNotificationReceiver property.
OnQueryMonthLeadingZeros Returns the specification for leading zeros in the month field for the short date format only. The valid values: 0 (no leading zeros for months) or 1(leading zeros for months).
OnQuerySpinButtonWidth Retrieves the width of the spin button in pixels.
OnQueryTimeDesignatorAM Returns a string for the AM designator.
OnQueryTimeDesignatorPM Returns a string for the PM designator.
OnQueryTimeDesignatorPosition Returns the specification indicating whether the time designator (AM or PM) precedes or follows the time string. The valid values: 0 (use as a suffix) or 1 (use as a prefix).
OnQueryTimeSeparator Returns the character(s) for the time separator.
OnQueryYearFormat Returns the specification indicating whether a 2-digit or 4-digit year is used for the short date format. The valid values: 0 (2-digit year) or 1 (4-digit year).
OnSelectItem Called when the current selected field is to be changed.
OnShowDropDownMenu Called when the drop-down pop-up date picker is to be displayed. The method returns true if succeeded or false otherwise.
OnValueChanging Called when the time duration value is to be changed. The method returns true if succeeded or false otherwise.
OnValueChanged Called when the time duration value has been changed.

See Also

CExtDurationWnd Overview | Hierarchy Chart