From f0e33272a74b18dfb7262cddb8e0a76ac5a9be8b Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sat, 26 Nov 2016 22:48:08 +0000 Subject: [PATCH] frmMain: Added initial code --- source/forms/main/frmMain.cpp | 6 +++++- source/forms/main/frmMain.h | 10 ++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/source/forms/main/frmMain.cpp b/source/forms/main/frmMain.cpp index ad424fa..47199f9 100644 --- a/source/forms/main/frmMain.cpp +++ b/source/forms/main/frmMain.cpp @@ -4,5 +4,9 @@ frmMain::frmMain( wxWindow* parent ) : frmMainADT( parent ) { - + + MainCalendarCtrl = new XCCalendarCtrl(this); + szrMain->Add(MainCalendarCtrl, 1, wxEXPAND, 5); + szrMain->Layout(); + } diff --git a/source/forms/main/frmMain.h b/source/forms/main/frmMain.h index 8e27797..bce60c6 100644 --- a/source/forms/main/frmMain.h +++ b/source/forms/main/frmMain.h @@ -7,12 +7,22 @@ Subclass of frmMainADT, which is generated by wxFormBuilder. */ #include "../../AppXestiaCalendar.h" +#include "../../widgets/XCCalendarCtrl.h" +#include "events.h" + //// end generated include /** Implementing frmMainADT */ class frmMain : public frmMainADT { + + private: + XCCalendarCtrl *MainCalendarCtrl = nullptr; + XCCalendarMonthView *MonthViewCtrl = nullptr; + + protected: + public: /** Constructor */ frmMain( wxWindow* parent ); -- 2.39.5