Re: Nullable CDateTimeCtrl?
I am not suggesting changing the formating. I am suggesting the DTS_SHOWNONE
style.
Use SetTime/GetTime to get/set the time.A null time has a COleDateTime::null
status.
--
Sheng Jiang
Microsoft MVP in VC++
"rockdale" <rockdale.green@gmail.com> wrote in message
news:f187b421-065f-4332-9b80-33ed2dac0a61@m3g2000hsc.googlegroups.com...
The first time I can use SetFormat("") to hide Today's date when I
initDialog, Then the user can
pick a date from the CDateTimeCtrl, but what if they try to delete/
empty the date they picked before? This part I do not know how. add a
button say "clear"
also, How could I know the DateTime is picked by the user or is the
underline datetime for SetFormat(""), or should I set a special date
so that I know the user did not pick a date?
thanks again
On Mar 24, 1:16 pm, "Sheng Jiang[MVP]"
<sheng_ji...@hotmail.com.discuss> wrote:
use DTS_SHOWNONE
--
Sheng Jiang
Microsoft MVP in VC++"rockdale" <rockdale.gr...@gmail.com> wrote in
message
news:47df4c4f-dd81-40f8-b6ae-6ca495aae7d0@s50g2000hsb.googlegroups.com...
Hi, all:
I have a datetime fiels visit_date on my dialog which currently using
CDateTimeCtrl for use to pick the date that they visit, but the visit
date should allow null which the CdateTimeCtrl does not support, what
is the best way to implement this?
I am thinking using a masked CEdit ctrl for user to enter date /delete
date, then put a button besidethe textbox so user can click this
button to shoiw the calendar if they want choose date from the
CDateTimeCtrl?
Or are any better implementations out there already, please point me
to the hyperlinks.
thanks
-rockdale- Hide quoted text -
- Show quoted text -