Fix handling of fast clicks in wxRibbonBar under MSW.

Second click can result in a double click event instead of the usual simple
click if it happens quickly enough after the first one, so handle double
clicks in the same way as simple clicks instead of ignoring them.

Closes #16551.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2014-12-25 01:31:48 +00:00
parent e2a0a4de4c
commit 5d982d4438
2 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@ BEGIN_EVENT_TABLE(wxRibbonButtonBar, wxRibbonControl)
EVT_PAINT(wxRibbonButtonBar::OnPaint)
EVT_SIZE(wxRibbonButtonBar::OnSize)
EVT_LEFT_DOWN(wxRibbonButtonBar::OnMouseDown)
EVT_LEFT_DCLICK(wxRibbonButtonBar::OnMouseDown)
EVT_LEFT_UP(wxRibbonButtonBar::OnMouseUp)
END_EVENT_TABLE()

View File

@ -68,6 +68,7 @@ BEGIN_EVENT_TABLE(wxRibbonToolBar, wxRibbonControl)
EVT_ERASE_BACKGROUND(wxRibbonToolBar::OnEraseBackground)
EVT_LEAVE_WINDOW(wxRibbonToolBar::OnMouseLeave)
EVT_LEFT_DOWN(wxRibbonToolBar::OnMouseDown)
EVT_LEFT_DCLICK(wxRibbonToolBar::OnMouseDown)
EVT_LEFT_UP(wxRibbonToolBar::OnMouseUp)
EVT_MOTION(wxRibbonToolBar::OnMouseMove)
EVT_PAINT(wxRibbonToolBar::OnPaint)