compilation fix after last change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -101,20 +101,19 @@ bool wxButton::Create(wxWindow *parent,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxButton::SetDefault()
|
wxWindow *wxButton::SetDefault()
|
||||||
{
|
{
|
||||||
wxTopLevelWindow *tlw = wxDynamicCast(wxGetTopLevelParent(this), wxTopLevelWindow);
|
wxWindow *btnOldDefault = wxButtonBase::SetDefault();
|
||||||
wxButton *btnOldDefault = NULL;
|
|
||||||
if ( tlw )
|
|
||||||
{
|
|
||||||
btnOldDefault = wxDynamicCast(tlw->GetDefaultItem(), wxButton);
|
|
||||||
tlw->SetDefaultItem(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( btnOldDefault )
|
if ( btnOldDefault )
|
||||||
btnOldDefault->m_peer->SetData(kControlButtonPart , kControlPushButtonDefaultTag , (Boolean) 0 ) ;
|
{
|
||||||
|
// cast needed to access the protected member
|
||||||
|
btnOldDefault->GetPeer()->SetData(kControlButtonPart , kControlPushButtonDefaultTag , (Boolean) 0 ) ;
|
||||||
|
}
|
||||||
|
|
||||||
m_peer->SetData(kControlButtonPart , kControlPushButtonDefaultTag , (Boolean) 1 ) ;
|
m_peer->SetData(kControlButtonPart , kControlPushButtonDefaultTag , (Boolean) 1 ) ;
|
||||||
|
|
||||||
|
return btnOldDefault;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxSize wxButton::DoGetBestSize() const
|
wxSize wxButton::DoGetBestSize() const
|
||||||
|
Reference in New Issue
Block a user