Made wxContextHelp implementation generic and added wxFindWindowAtPointer,

wxGetMousePosition functions


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-09-07 09:43:05 +00:00
parent bfabd11afb
commit 3723b7b1d8
9 changed files with 261 additions and 261 deletions

View File

@@ -93,25 +93,15 @@ public:
bool BeginContextHelp(wxWindow* win);
bool EndContextHelp();
bool EventLoop(const wxCursor& cursor, wxWindow* win);
bool EventLoop();
bool DispatchEvent(wxWindow* win, const wxPoint& pt);
#ifdef __WXMSW__
bool ProcessHelpMessage(WXMSG* wxmsg, const wxCursor& cursor, wxWindow* win);
#endif
#ifdef __WXGTK__
void SetStatus(bool status, const wxPoint& pt) { m_status = status; m_mousePos = pt; }
#endif
void SetStatus(bool status) { m_status = status; }
protected:
bool m_inHelp;
#ifdef __WXGTK__
bool m_status; // The user left-clicked
wxPoint m_mousePos;
#endif
bool m_status; // TRUE if the user left-clicked
};
#endif // wxUSE_HELP

View File

@@ -885,11 +885,18 @@ inline wxWindow *wxWindowBase::GetGrandParent() const
}
// ----------------------------------------------------------------------------
// global function
// global functions
// ----------------------------------------------------------------------------
WXDLLEXPORT extern wxWindow* wxGetActiveWindow();
// Find the wxWindow at the current mouse position, also returning the mouse
// position.
WXDLLEXPORT extern wxWindow* wxFindWindowAtPointer(wxPoint& pt);
// Get the current mouse position.
WXDLLEXPORT extern wxPoint wxGetMousePosition();
// deprecated (doesn't start with 'wx' prefix), use wxWindow::NewControlId()
inline WXDLLEXPORT int NewControlId() { return wxWindowBase::NewControlId(); }