if (m_validatorWindow->IsKindOf(CLASSINFO(wxDatePickerCtrl)) )
{
wxDatePickerCtrl* pControl = (wxDatePickerCtrl*) m_validatorWindow;
if (m_validatorWindow->IsKindOf(CLASSINFO(wxDatePickerCtrl)) )
{
wxDatePickerCtrl* pControl = (wxDatePickerCtrl*) m_validatorWindow;