MFC CDateTimeCtrl issue

Raghav SB 1 Reputation point
2020-04-02T18:31:35.15+00:00

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
    2023-08-26T05:34:37.8066667+00:00

    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