No changes, just replace a useless comment with a more helpful one

Don't describe in English what the next line of code does, which is useless,
but rather explain why do we do this.
This commit is contained in:
Vadim Zeitlin
2015-11-19 00:25:26 +01:00
parent 9bcaa058a0
commit d3e7833a90

View File

@@ -2113,9 +2113,15 @@ wxTextCtrl::MSWHandleMessage(WXLRESULT *rc,
// live with it.
*rc = lDlgCode;
}
if (IsMultiLine())
// Clear the DLGC_HASSETSEL bit from the return value
if ( IsMultiLine() )
{
// The presence of this style, coming from the default EDIT
// WndProc, indicates that the control contents should be
// selected when it gets focus, but we don't want this to
// happen for the multiline controls, so clear it.
*rc &= ~DLGC_HASSETSEL;
}
}
break;