Better text control non-selection solution
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1951,6 +1951,9 @@ WXLRESULT wxTextCtrl::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPara
|
|||||||
// live with it.
|
// live with it.
|
||||||
lRc = lDlgCode;
|
lRc = lDlgCode;
|
||||||
}
|
}
|
||||||
|
if (IsMultiLine())
|
||||||
|
// Clear the DLGC_HASSETSEL bit from the return value
|
||||||
|
lRc &= ~DLGC_HASSETSEL;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@@ -3100,13 +3100,6 @@ wxWindowMSW::MSWHandleMessage(WXLRESULT *result,
|
|||||||
|
|
||||||
processed = true;
|
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()
|
//else: get the dlg code from the DefWindowProc()
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user