make wxFrame a wxControlContainer too, so that it behaves in the same way as wxDialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -52,12 +52,8 @@ BEGIN_EVENT_TABLE(wxDialogBase, wxTopLevelWindow)
|
||||
EVT_CLOSE(wxDialogBase::OnCloseWindow)
|
||||
|
||||
EVT_CHAR_HOOK(wxDialogBase::OnCharHook)
|
||||
|
||||
WX_EVENT_TABLE_CONTROL_CONTAINER(wxDialogBase)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
WX_DELEGATE_TO_CONTROL_CONTAINER(wxDialogBase, wxTopLevelWindow)
|
||||
|
||||
void wxDialogBase::Init()
|
||||
{
|
||||
m_returnCode = 0;
|
||||
@@ -68,8 +64,6 @@ void wxDialogBase::Init()
|
||||
// dialog controls from reaching the parent frame which is usually
|
||||
// undesirable and can lead to unexpected and hard to find bugs
|
||||
SetExtraStyle(GetExtraStyle() | wxWS_EX_BLOCK_EVENTS);
|
||||
|
||||
WX_INIT_CONTROL_CONTAINER();
|
||||
}
|
||||
|
||||
// helper of GetParentForModalDialog()
|
||||
|
||||
Reference in New Issue
Block a user