Rigsby
January 20th, 2008, 03:20 PM
I really am a newbie, so please go easy on me!
With help from the Code Guru forums, I have actually managed to get a MonthCalendar doing what I want, except for one thing:
The MonthCalendar pops up at today’s date! How can I get it to start at a different date? I have searched the web and can find no answer that I understand. It seems I need to use:
MonthCal_SetCurSel(hWndMonthCal, ???????????);
But I don’t know how to send the value to the second parameter (????????????). What I have is a:
TCHAR date[50];
So effectively need:
MonthCal_SetCurSel(hWndMonthCal, date);
Which obviously, will not work!
This should be the start date of the MonthCalendar! How do I do that? This variable "date" holds a string in the format: DD.MM.YYYY, so, for example: 15.11.1950
Thanks
With help from the Code Guru forums, I have actually managed to get a MonthCalendar doing what I want, except for one thing:
The MonthCalendar pops up at today’s date! How can I get it to start at a different date? I have searched the web and can find no answer that I understand. It seems I need to use:
MonthCal_SetCurSel(hWndMonthCal, ???????????);
But I don’t know how to send the value to the second parameter (????????????). What I have is a:
TCHAR date[50];
So effectively need:
MonthCal_SetCurSel(hWndMonthCal, date);
Which obviously, will not work!
This should be the start date of the MonthCalendar! How do I do that? This variable "date" holds a string in the format: DD.MM.YYYY, so, for example: 15.11.1950
Thanks