]> git.saurik.com Git - wxWidgets.git/commitdiff
mention that mouse events carry position in window coordinates of the window which...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Dec 2008 14:52:29 +0000 (14:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Dec 2008 14:52:29 +0000 (14:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/event.h

index f2c575e1abc716dc3fbcdb70db2c68831ae4215d..472c265eb7a27847a13f4a70c96a60d316446a80 100644 (file)
@@ -1428,6 +1428,12 @@ public:
     parent window receives @c wxEVT_LEAVE_WINDOW event not only when the
     mouse leaves the window entirely but also when it enters one of its children.
 
+    The position associated with a mouse event is expressed in the window
+    coordinates of the window which generated the event, you can use
+    wxWindow::ClientToScreen() to convert it to screen coordinates and possibly
+    call wxWindow::ScreenToClient() next to convert it to window coordinates of
+    another window.
+
     @note Note that under Windows CE mouse enter and leave events are not natively
           supported by the system but are generated by wxWidgets itself. This has several
           drawbacks: the LEAVE_WINDOW event might be received some time after the mouse