Home Dashboard Directory Help

CDockablePane undocking issue with swapped mouse buttons by OneMoreTry


 as Fixed Help for as Fixed

Sign in
to vote
Type: Bug
ID: 618207
Opened: 10/29/2010 4:04:01 PM
Access Restriction: Public
User(s) can reproduce this bug


A CDockablePane cannot be undocked using drag-n-drop when the mouse buttons are swapped.

There is a bug in the CDockablePane::OnMouseMove handler where GetAsyncKeyState(VK_LBUTTON) is used without checking the swap state... using GetSystemMetrics(SM_SWAPBUTTON).

A partial workaround is to handle the OnMouseMove in your CDockablePane derived class. This workaround will not work if the dockable pane is docked as part of a tabbed pane.

A quick search also shows other places in the Feature Pack code where GetAsyncKeyState using VK_LBUTTON is called.
Sign in to post a comment.
Posted by Microsoft on 12/2/2010 at 9:28 AM

Thanks for the report. This issue has been fixed in MFC for the next major release of Visual Studio.

Pat Brenner
Visual C++ Libraries Development
Posted by Microsoft on 10/31/2010 at 7:08 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.

Posted by Microsoft on 10/29/2010 at 4:23 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.