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:
@@ -2113,9 +2113,15 @@ wxTextCtrl::MSWHandleMessage(WXLRESULT *rc,
|
|||||||
// live with it.
|
// live with it.
|
||||||
*rc = lDlgCode;
|
*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;
|
*rc &= ~DLGC_HASSETSEL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user