문제

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

도움이 되었습니까?

해결책

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top