Fix compilation of wxSpinCtrlGenericBase when PCH are not used.

This fixes PCH-less compilation broken by r65043.

Closes #12259 (again).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2010-07-22 13:42:38 +00:00
parent 713c7336f2
commit fda43a0e01
2 changed files with 7 additions and 1 deletions

View File

@ -96,7 +96,7 @@ public:
// shouldn't accept the focus at all and any attempts to explicitly set
// focus to it should give focus to its text constol part
virtual bool AcceptsFocus() const { return false; }
virtual void SetFocus() { if ( m_textCtrl ) m_textCtrl->SetFocus(); }
virtual void SetFocus();
friend class wxSpinCtrlTextGeneric;

View File

@ -279,6 +279,12 @@ void wxSpinCtrlGenericBase::DoMoveWindow(int x, int y, int width, int height)
// operations forwarded to the subcontrols
// ----------------------------------------------------------------------------
void wxSpinCtrlGenericBase::SetFocus()
{
if ( m_textCtrl )
m_textCtrl->SetFocus();
}
bool wxSpinCtrlGenericBase::Enable(bool enable)
{
// Notice that we never enable this control itself, it must stay disabled