Print Page | Close Window

How to get started with MFC Calendar?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=15756
Printed Date: 02 May 2024 at 8:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to get started with MFC Calendar?
Posted By: EricFowler
Subject: How to get started with MFC Calendar?
Date Posted: 01 December 2009 at 4:10pm
I have the demo version and have an MFC project with a dialog. I want to slap a calendar control into that dialog. I found the Codejock menu item under tools but no control palette entries, etc.
 
Where do I find that control? How do I get one into my project?
 
Thanks
 
Eric



Replies:
Posted By: mdoubson
Date Posted: 01 December 2009 at 5:42pm

BOOL CCalendarOnDialogDlg::OnInitDialog() ......

m_ctrlCalendar.Create(WS_CHILD | WS_TABSTOP | WS_VISIBLE, rcCalendar, this, IDC_CALENDAR_CTRL_ID);

m_wndCalendarCaptionBar.Create(WS_CHILD | WS_TABSTOP | WS_VISIBLE, CRect(0, 0, 0, 0), this, ID_CALENDARCAPTIONBAR_CONTROL);

where you dialog class has:

CXTPCalendarControl m_ctrlCalendar;

CXTPCalendarCaptionBarControl m_wndCalendarCaptionBar;



-------------
Mark Doubson, Ph.D.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net