compilation fix when used together with native control

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-01-21 15:08:19 +00:00
parent 7ff2dfbac2
commit b6292ff062

View File

@@ -46,6 +46,7 @@
#endif #endif
#include "wx/dateevt.h" #include "wx/dateevt.h"
#include "wx/generic/datectrl.h"
#include "wx/calctrl.h" #include "wx/calctrl.h"
#include "wx/popupwin.h" #include "wx/popupwin.h"
@@ -76,7 +77,9 @@ BEGIN_EVENT_TABLE(wxDatePickerCtrlGeneric, wxDatePickerCtrlBase)
EVT_CHILD_FOCUS(wxDatePickerCtrlGeneric::OnChildSetFocus) EVT_CHILD_FOCUS(wxDatePickerCtrlGeneric::OnChildSetFocus)
END_EVENT_TABLE() END_EVENT_TABLE()
IMPLEMENT_DYNAMIC_CLASS(wxDatePickerCtrl, wxDatePickerCtrlBase) #ifndef wxHAS_NATIVE_DATEPICKCTRL
IMPLEMENT_DYNAMIC_CLASS(wxDatePickerCtrl, wxDatePickerCtrlBase)
#endif
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// creation // creation
@@ -482,7 +485,7 @@ void wxDatePickerCtrlGeneric::OnChildSetFocus(wxChildFocusEvent &ev)
} }
void wxDatePickerCtrlGeneric::OnClick(wxCommandEvent& event) void wxDatePickerCtrlGeneric::OnClick(wxCommandEvent& WXUNUSED(event))
{ {
if (m_ignoreDrop) if (m_ignoreDrop)
{ {
@@ -497,7 +500,7 @@ void wxDatePickerCtrlGeneric::OnClick(wxCommandEvent& event)
} }
void wxDatePickerCtrlGeneric::OnSetFocus(wxFocusEvent &ev) void wxDatePickerCtrlGeneric::OnSetFocus(wxFocusEvent& WXUNUSED(ev))
{ {
if (m_txt) if (m_txt)
{ {