winapimfcwindows-controls

How to make CDateTimeCtrl have a string as default value?


I am using MFC CDateTimeCtrl in VS2010. It seems it always has a datetime value showed, default one is today. I want sort of customizing it. Would it be possible that to make it show a string say "no date selected" when it shows up first time? After that, when the end user picks up a date, show the corresponding date.

Thanks


Solution

  • The underlying control supports "No value" but presents a checkbox allowiing a data to be specified (or not).