CDockablePane undocking issue with swapped mouse buttons - by OneMoreTry

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 618207 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 10/29/2010 4:04:01 PM
Access Restriction Public


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 Helen [MSFT] 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(