X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/871192ce0f40bdcbdc89ecdd4029cf7934f6be02..eaba6eba3a1ca393e6ecbafa601cc3b54e705901:/src/common/cshelp.cpp diff --git a/src/common/cshelp.cpp b/src/common/cshelp.cpp index ae2a282c3a..f1433c3bed 100644 --- a/src/common/cshelp.cpp +++ b/src/common/cshelp.cpp @@ -27,10 +27,10 @@ #if wxUSE_HELP #ifndef WX_PRECOMP + #include "wx/app.h" #endif #include "wx/tipwin.h" -#include "wx/app.h" #include "wx/module.h" #include "wx/cshelp.h" @@ -227,7 +227,8 @@ bool wxContextHelp::DispatchEvent(wxWindow* win, const wxPoint& pt) bool eventProcessed = false; while (subjectOfHelp && !eventProcessed) { - wxHelpEvent helpEvent(wxEVT_HELP, subjectOfHelp->GetId(), pt) ; + wxHelpEvent helpEvent(wxEVT_HELP, subjectOfHelp->GetId(), pt, + wxHelpEvent::Origin_HelpButton); helpEvent.SetEventObject(subjectOfHelp); eventProcessed = win->GetEventHandler()->ProcessEvent(helpEvent);