generate the correct events in the native MSW version of wxCalendarCtrl

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-04-04 15:26:37 +00:00
parent ee22a3a2a6
commit a4fcd589a8
5 changed files with 62 additions and 26 deletions

View File

@@ -297,12 +297,18 @@ public:
// implementation only from now on
protected:
// generate the given calendar event(s)
void GenerateEvent(wxEventType type)
{
wxCalendarEvent event(this, GetDate(), type);
HandleWindowEvent(event);
}
// generate all the events for the selection change from dateOld to current
// date: SEL_CHANGED, PAGE_CHANGED if necessary and also one of (deprecated)
// YEAR/MONTH/DAY_CHANGED ones
void GenerateAllChangeEvents(const wxDateTime& dateOld);
};
// ----------------------------------------------------------------------------