Windows: Increase text size limit in RichEdit control to avoid truncating Legal Notices text when displayed.

This commit is contained in:
Mounir IDRASSI 2016-08-17 16:27:16 +02:00
parent 8c963356cb
commit d4192bf863
No known key found for this signature in database
GPG Key ID: DD0C382D5FCFB8FC

View File

@ -3316,6 +3316,9 @@ BOOL CALLBACK TextInfoDialogBoxDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, L
{
nID = (int) lParam;
// increase size limit of rich edit control
SendMessage(GetDlgItem (hwndDlg, IDC_INFO_BOX_TEXT), EM_EXLIMITTEXT, 0, -1);
// Left margin for rich edit text field
SendMessage (GetDlgItem (hwndDlg, IDC_INFO_BOX_TEXT), EM_SETMARGINS, (WPARAM) EC_LEFTMARGIN, (LPARAM) CompensateXDPI (4));