added EVT_TASKBAR_CLICK and use it to show taskbar icon menu on right button release, not press, under MSW (bug 1623761)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -109,8 +109,16 @@ END_DECLARE_EVENT_TYPES()
|
||||
#define EVT_TASKBAR_LEFT_DCLICK(fn) wx__DECLARE_TASKBAREVT(LEFT_DCLICK, fn)
|
||||
#define EVT_TASKBAR_RIGHT_DCLICK(fn) wx__DECLARE_TASKBAREVT(RIGHT_DCLICK, fn)
|
||||
|
||||
// taskbar menu is shown on right button press under all platforms except MSW
|
||||
// where it's shown on right button release, using this event type and macro
|
||||
// allows to write code which works correctly on all platforms
|
||||
#ifdef __WXMSW__
|
||||
#define wxEVT_TASKBAR_CLICK wxEVT_TASKBAR_RIGHT_UP
|
||||
#else
|
||||
#define wxEVT_TASKBAR_CLICK wxEVT_TASKBAR_RIGHT_DOWN
|
||||
#endif
|
||||
// wxHAS_TASK_BAR_ICON
|
||||
#define EVT_TASKBAR_CLICK(fn) wx__DECLARE_TASKBAREVT(CLICK, fn)
|
||||
|
||||
#endif
|
||||
// _WX_TASKBAR_H_BASE_
|
||||
#endif // wxHAS_TASK_BAR_ICON
|
||||
|
||||
#endif // _WX_TASKBAR_H_BASE_
|
||||
|
Reference in New Issue
Block a user