TDateTimePicker control
Back Home Up Next

 

TDateTimePicker,TDateTimePickerData class

Header File
    <owl/datetime.h>

Description
    The TDateTimePicker,TDateTimePickerData classes encapsulates common DateTime Picker control.

Constructors
    TDateTimePickerData(const TSystemTime& dt,const TSystemTime& mind = TSystemTime(0,0,0), const TSystemTime& maxd = TSystemTime(0,0,0))
            Creates a TDateTimePickerData object.
    TDateTimePicker
        TDateTimePicker(TWindow* parent, int id, int x, int y, int w, int h, TModule* module = 0);
        TDateTimePicker(TWindow*  parent, int resourceId, TModule* module = 0);
           Form 1: Creates a TDateTimePicker object for using in a window.
           Form 2: Creates a TDateTimePicker object from resource for using in dialog.

    enum TDateTimeColors{
            dtBackColor=MCSC_BACKGROUND,
            dtTextColor=MCSC_TEXT,
            dtTitleBackColor=MCSC_TITLEBK,
            dtTitleTextColor=MCSC_TITLETEXT,
            dtMonthBackColor=MCSC_MONTHBK,
            dtTrailingTextColor=MCSC_TRAILINGTEXT,
        };

    void           SetColor(TDateTimeColors index, const TColor& clr); - Set color
    TColor     GetColor(TDateTimeColors index);
    bool         SetFormat(LPCTSTR format);
    HFONT  GetFont() const;
    void         SetFont(HFONT font, bool redraw = true);
    bool         SetTime(const TSystemTime& dt);
    bool         SetNoTime();
    int             GetTime(TSystemTime& dt);
    bool         SetRange(const TSystemTime& mint, const TSystemTime& maxt);
    void          GetRange(TSystemTime& mint, TSystemTime& maxt) const;
    HWND   GetMonthCalCtrl();
    uint           Transfer(void* buffer, TTransferDirection direction);

See Windows SDK help for using this control.


Copyright © 1998-2001 Yura Bidus. All rights reserved.