Click here to Skip to main content
15,887,821 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'd like to use a personalized CMonthCalCtrl in my CCustomDateTimeCtrl.
I've tried to catch the DTN_DROPDOWN message; in my CCustomDateTimeCtrl::OnDropDown method, I display my own calendar but when I've selected a day, the old calendar appears.

If at the end of OnDropDown I put;

GetMonthCalCtrl()->PostMessage(WM_CLOSE);

then the old calendar never appears, but "one click" of the mouse is not sent to the dialog.

Any suggestion?
Posted
Updated 22-Jan-11 1:45am
v2
Comments
DaveAuld 22-Jan-11 7:45am    
Edit: updated text to make it a bit more readable.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900