Search

CDockablePane undocking issue with swapped mouse buttons by OneMoreTry

Closed
as Fixed Help for as Fixed

1
0
Sign in
to vote
Type: Bug
ID: 618207
Opened: 10/29/2010 4:04:01 PM
Access Restriction: Public
0
Workaround(s)
0
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.
Details (expand)

Visual Studio/Silverlight/Tooling version

Visual Studio 2010

What category (if any) best represents this feedback?

 

Steps to reproduce

1. Swap left/right mouse buttons in Control Panel.
2. Run VisualStudio sample.
3. Try to undock a docked pane using drag-n-drop.

Product Language

English

Operating System

Windows 7

Operating System Language

English

Actual results

Docking pane cannot be undocked.

Expected results

Docking pane should undock when dragged with the mouse.
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 12/2/2010 at 9:28 AM
Hello,

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.