From 06f3c649c91e3ad1d7e616495ecc19d83f073a33 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 22 May 2001 22:04:00 +0000 Subject: [PATCH] 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 --- contrib/utils/wxrcedit/preview.cpp | 9 +++++++++ contrib/utils/wxrcedit/preview.h | 3 +++ 2 files changed, 12 insertions(+) diff --git a/contrib/utils/wxrcedit/preview.cpp b/contrib/utils/wxrcedit/preview.cpp index b3d23b6a64..015a883b3f 100644 --- a/contrib/utils/wxrcedit/preview.cpp +++ b/contrib/utils/wxrcedit/preview.cpp @@ -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) diff --git a/contrib/utils/wxrcedit/preview.h b/contrib/utils/wxrcedit/preview.h index 7fee0baa7a..6675c4f752 100644 --- a/contrib/utils/wxrcedit/preview.h +++ b/contrib/utils/wxrcedit/preview.h @@ -57,6 +57,9 @@ class PreviewFrame : public wxFrame DECLARE_EVENT_TABLE() void OnMouseEnter(wxMouseEvent& event); +#ifdef __WXMSW__ + void OnActivate(wxActivateEvent &event); +#endif }; -- 2.45.2