2

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

Rob Lao
  • 1,526
  • 4
  • 14
  • 38

2 Answers2

1

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

Deanna
  • 23,876
  • 7
  • 71
  • 156
0

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

Jeeva
  • 4,585
  • 2
  • 32
  • 56
  • Do you know which specific behavior should it be override? I have tried OnPaint OnNcPaint OnEraseBkgnd but no success. – Rob Lao Mar 22 '12 at 22:24