<< Return to Main Index

< Return to Class Index

CGXDateTimeCtrl Class Members

Construction

CGXDateTimeCtrl Constructs a date/time control object.

User Attributes

AddUserAttributes Call this static method to register user attributes with the styles-map. Registered user attributes will be displayed in the CGXStyleSheet and can be modified by the user with the style sheet.

Attributes

m_bInactiveDrawButton Specifies if the button gadget should be drawn when the cell is inactive. The default value for this is FALSE, i.e., the button gadget will not be drawn in the inactive state.
m_bInactiveDrawSpin Specifies if the spin gadget should be drawn when the cell is inactive. The default value for this is FALSE, i.e., the spin gadget will not be drawn in the inactive state.

Implementation

m_DrawCtrlWnd This control is created internally and is used by CGXDateTimeCtrl for formatting/drawing.
m_TextCtrlWnd This control is also created internally and is used by CGXDateTimeCtrl for formatting.
m_strDelim This member of class CString holds the delimiters that will be checked while parsing text for a valid date/time value.

Methods

Implementation

DrawButtonGadget Renders a button gadget to an arbitrary device context. This is used to draw button gadgets in an inactive state.
DrawListGadget Renders a list gadget to an arbitrary device context. This is used to draw the list gadgets in an inactive state.
DrawNumericGadget Renders a numeric gadget to an arbitrary device context. This is used to draw the numeric gadgets in an inactive state.
DrawSpinGadget Renders a spin gadget to an arbitrary device context. This is used to draw the spin gadgets in an inactive state.
DrawStaticGadget Renders a static gadget to an arbitrary device context. This is used to draw the static gadgets in an inactive state.
EditableGadgetFromPoint EditableGadgetFromPoint is called to help activate the correct gadget under the point where the user clicked the control.
OnChanging This function will be called whenever the date/time value in the CGXDateTimeCtrl is being changed.
ParseTextWithCurrentFormat This function will be called from SetControlText.

CGXDateTimeCtrl

Class Overview