calendar thing
Hey I''m making a little editor for my game(first one!) and I need to include a little calendar thing in it so I can pick a date but I can''t figure out how to make it... the msdn says I should use CreateWindowEx specifying MONTHCAL_CLASS as the window class, but then what? how do I display it? I''ve tried this for a long time now and I can''t get it to work.. anyone wanna help? This is win32 btw so no mfc please
Okay, have you called InitCommonControlsEx before you called CreateWindowEx?
Specifically try this code: (I haven''t tested it)
/* Begin Code block */
bool ret = false;
INITCOMMONCONTROLSEX iccex;
iccex.dwSize = sizeof(iccex);
iccex.dwICC = ICC_DATE_CLASSES;
ret = InitCommonControlsEx(&iccex);
if (ret == true)
MessageBox(NULL, "InitCommonControlsEx call failed", "MyApp", MB_OK);
// Insert your createwindow code here
/* End Code block */
That is exactly how the MSDN documentation tells you to call it.
(using my code - uh oh )
Just an quick question: Why do you need a calender control in an editor?
Regards,
Nekosion
Specifically try this code: (I haven''t tested it)
/* Begin Code block */
bool ret = false;
INITCOMMONCONTROLSEX iccex;
iccex.dwSize = sizeof(iccex);
iccex.dwICC = ICC_DATE_CLASSES;
ret = InitCommonControlsEx(&iccex);
if (ret == true)
MessageBox(NULL, "InitCommonControlsEx call failed", "MyApp", MB_OK);
// Insert your createwindow code here
/* End Code block */
That is exactly how the MSDN documentation tells you to call it.
(using my code - uh oh )
Just an quick question: Why do you need a calender control in an editor?
Regards,
Nekosion
Regards,Nekosion
October 03, 2000 09:55 AM
Hey I got it working now, thanks, it was that itCommonControlsEx thing. The calendar just shows when a file was last edited, it''s pretty useless
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement