How do you set the MCS_DAYSTATE style on a CMonthCalCtrl that's created from CDateTimeCtrl

I'm creating a C++ application in Visual Studio 2010 the will run on Windows Server 2008.  My Google search came up with a link to your site, as having an answer to the issue with adding the MCS_DAYSTATE style on the CMonthCalCtrl control when it's created from the dropdown date time control CDateTimeCtrl.  The link said Microsoft created a new function in Visual Studio 2008 called SetMonthCalStyle() to set the said style above as the calendar control is being created when it's dropdown from CDateTimeCtrl. So, my question is how do you set the MCS_DAYSTATE style on the CMonthCalCtrl control class that is created by the CDateTimeCtrl control class?

...Peter
Peter VoytersharkSenior Applications DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sarabandeCommented:
after I set my mfc project to use UNICODE strings the following compiled:

CDateTimeCtrl dt;
dt.SetMonthCalStyle(MCS_DAYSTATE);

Open in new window


Sara
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Peter VoytersharkSenior Applications DeveloperAuthor Commented:
I'm converting our applications to UNICODE, so the said Microsoft functionality in the CMonthCalCtrl class can be used.

...Peter
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.