I'm trying to use the month calender box in a dialog box. When I use MCN_SELECT and try to retrieve data with GetDay(),GetMonth() and GetYear() the day is of by 14 days and the month is of by 2. The year seems to be ok. My code looks like this.
void CGuiDlg::OnSelectMonthcalendarStart(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
int oldDay,oldMonth,oldYear;
oldDay=m_calendarStart.GetDay();
oldMonth=m_calendarStart.GetMonth();
oldYear=m_calendarStart.GetYear();
Bla , bla ,bla ..........
*pResult = 0;
}
I’m stumped any help would be great



LinkBack URL
About LinkBacks



