applied workaround patch to get rid of crashes in wxrcedit on MSW

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-05-22 22:04:00 +00:00
parent 2adaf5969f
commit 06f3c649c9
2 changed files with 12 additions and 0 deletions

View File

@ -220,9 +220,18 @@ void PreviewFrame::PreviewPanel()
}
#ifdef __WXMSW__
// avoid Problems with setting the focus to a no longer existing child
void PreviewFrame::OnActivate(wxActivateEvent &event)
{
}
#endif
BEGIN_EVENT_TABLE(PreviewFrame, wxFrame)
EVT_ENTER_WINDOW(PreviewFrame::OnMouseEnter)
#ifdef __WXMSW__
EVT_ACTIVATE(PreviewFrame::OnActivate)
#endif
END_EVENT_TABLE()
void PreviewFrame::OnMouseEnter(wxMouseEvent& event)

View File

@ -57,6 +57,9 @@ class PreviewFrame : public wxFrame
DECLARE_EVENT_TABLE()
void OnMouseEnter(wxMouseEvent& event);
#ifdef __WXMSW__
void OnActivate(wxActivateEvent &event);
#endif
};