Page 1 of 1

DTPICKER with EMPTY Dates

PostPosted: Wed May 10, 2006 3:10 pm
by dbzap
I'm using DTPICKER CONTROL, it's right, but i need display an empty date format. Exist?
How can make it ?

Thanks.

( sorry my english ! )

PostPosted: Thu May 11, 2006 6:34 am
by Frank Demont
REDEFINE DTPICKER Obj VAR Van ID 10 OF oDlg

with :


CONTROL "", 10 , "SysDateTimePick32", 0 | WS_CHILD | WS_VISIBLE | WS_TABSTOP | DTS_SHOWNONE , 205 , 9 , 60, 12

PostPosted: Thu May 11, 2006 11:29 am
by dbzap
DTS_SHOWNONE value ?

PostPosted: Thu May 11, 2006 2:12 pm
by Gale FORd
dbzap wrote:DTS_SHOWNONE value ?


I don't know what all of these are for but?

// begin_r_commctrl

#define DTS_UPDOWN 0x0001 // use UPDOWN instead of MONTHCAL
#define DTS_SHOWNONE 0x0002 // allow a NONE selection
#define DTS_SHORTDATEFORMAT 0x0000 // use the short date format (app must forward WM_WININICHANGE messages)
#define DTS_LONGDATEFORMAT 0x0004 // use the long date format (app must forward WM_WININICHANGE messages)
#if (_WIN32_IE >= 0x500)
#define DTS_SHORTDATECENTURYFORMAT 0x000C// short date format with century (app must forward WM_WININICHANGE messages)
#endif // (_WIN32_IE >= 0x500)
#define DTS_TIMEFORMAT 0x0009 // use the time format (app must forward WM_WININICHANGE messages)
#define DTS_APPCANPARSE 0x0010 // allow user entered strings (app MUST respond to DTN_USERSTRING)
#define DTS_RIGHTALIGN 0x0020 // right-align popup instead of left-align it

// end_r_commctrl