move default button handling code from wxControlContainer to wxTLW (patch 1524441)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2021,9 +2021,13 @@ bool wxWindowOS2::OS2ProcessMessage( WXMSG* pMsg )
|
||||
}
|
||||
else
|
||||
{
|
||||
wxButton* pBtn = wxDynamicCast( GetDefaultItem()
|
||||
,wxButton
|
||||
);
|
||||
wxTopLevelWindow *tlw = wxDynamicCast(wxGetTopLevelParent(this), wxTopLevelWindow);
|
||||
wxButton* pBtn = NULL;
|
||||
|
||||
if (tlw)
|
||||
{
|
||||
pBtn = wxDynamicCast(tlw->GetDefaultItem(), wxButton);
|
||||
}
|
||||
|
||||
if (pBtn && pBtn->IsEnabled())
|
||||
{
|
||||
|
Reference in New Issue
Block a user