MFC CDateTimeCtrl issue

Raghav SB 1 Reputation point

MFC VC++ in ‘CDateTimeCtrl’ issue is after selecting the date from the dropdown, if the date edited manually by user is not getting reflected, and it is changing to previously selected date.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,143 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vahid Ghafarpour 20,030 Reputation points

    Make sure you are handling the appropriate events for the CDateTimeCtrl. The events you might want to look into are DTN_DATETIMECHANGE and DTN_CLOSEUP. The DTN_DATETIMECHANGE event is fired whenever the user changes the date or time in the control.

    0 comments No comments