Frage

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

War es hilfreich?

Lösung

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

Andere Tipps

Probably you need to create your own custom control or subclass the CDateTimeCtrl and override its behaviour

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top