Implemented non-selection of content when setting focus via the keyboard.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2011-08-16 20:52:15 +00:00
parent 675ec6655e
commit 63509fb3c4
2 changed files with 9 additions and 0 deletions

View File

@@ -3100,6 +3100,13 @@ wxWindowMSW::MSWHandleMessage(WXLRESULT *result,
processed = true;
}
else if (IsOfStandardClass() && IsKindOf(CLASSINFO(wxTextCtrl)) && ((wxTextCtrl*)this)->IsMultiLine())
{
rc.result = MSWDefWindowProc(message, wParam, lParam);
// Clear the DLGC_HASSETSEL bit from the return value
rc.result &= ~DLGC_HASSETSEL;
processed = true;
}
//else: get the dlg code from the DefWindowProc()
break;