fix bug where tooltip notifications could generate spin events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -221,6 +221,9 @@ bool wxSpinButton::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
|
|||||||
LPNMUPDOWN lpnmud = (LPNMUPDOWN)lParam;
|
LPNMUPDOWN lpnmud = (LPNMUPDOWN)lParam;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (lpnmud->hdr.hwndFrom != GetHwnd()) // make sure it is the right control
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
wxSpinEvent event(lpnmud->iDelta > 0 ? wxEVT_SCROLL_LINEUP
|
wxSpinEvent event(lpnmud->iDelta > 0 ? wxEVT_SCROLL_LINEUP
|
||||||
: wxEVT_SCROLL_LINEDOWN,
|
: wxEVT_SCROLL_LINEDOWN,
|
||||||
m_windowId);
|
m_windowId);
|
||||||
|
Reference in New Issue
Block a user