mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
STR #1095: Drag'n'drop on WIN32 was only possible using the left mouse button. Added support for the middle and right button.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4677 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -288,7 +288,7 @@ public:
|
|||||||
STDMETHODIMP QueryContinueDrag( BOOL esc, DWORD keyState ) {
|
STDMETHODIMP QueryContinueDrag( BOOL esc, DWORD keyState ) {
|
||||||
if ( esc )
|
if ( esc )
|
||||||
return DRAGDROP_S_CANCEL;
|
return DRAGDROP_S_CANCEL;
|
||||||
if ( !(keyState & MK_LBUTTON) )
|
if ( !(keyState & (MK_LBUTTON|MK_MBUTTON|MK_RBUTTON)) )
|
||||||
return DRAGDROP_S_DROP;
|
return DRAGDROP_S_DROP;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user