#endif
// string controls
+#if wxUSE_BUTTON
if (m_validatorWindow->IsKindOf(CLASSINFO(wxButton)) )
{
wxButton* pControl = (wxButton*) m_validatorWindow;
return TRUE;
}
} else
+#endif
#if wxUSE_COMBOBOX
if (m_validatorWindow->IsKindOf(CLASSINFO(wxComboBox)) )
{
return TRUE;
}
} else
+#if wxUSE_TEXTCTRL
if (m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)) )
{
wxTextCtrl* pControl = (wxTextCtrl*) m_validatorWindow;
return TRUE;
}
} else
+#endif
// array controls
#if wxUSE_CHECKLISTBOX && !defined(__WIN16__)
// NOTE: wxCheckListBox is a wxListBox, so wxCheckListBox MUST come first:
} else
#endif
// string controls
+#if wxUSE_BUTTON
if (m_validatorWindow->IsKindOf(CLASSINFO(wxButton)) )
{
wxButton* pControl = (wxButton*) m_validatorWindow;
*m_pString = pControl->GetLabel() ;
return TRUE;
}
- }
- else
+ } else
+#endif
#if wxUSE_COMBOBOX
if (m_validatorWindow->IsKindOf(CLASSINFO(wxComboBox)) )
{
return TRUE;
}
} else
+#if wxUSE_TEXTCTRL
if (m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)) )
{
wxTextCtrl* pControl = (wxTextCtrl*) m_validatorWindow;
return TRUE;
}
} else
+#endif
// array controls
#if wxUSE_CHECKLISTBOX
#ifndef __WIN16__