Added new style ES_AUTOHSCROLL to enable scrolling of text in edit boxes and also set the limit to 200 ( its arbitrary and can be changed later if it is too high or low)

This commit is contained in:
varada%netscape.com 1999-09-17 00:05:25 +00:00
Родитель cdd8de3746
Коммит 2a44a5b8ee
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -871,17 +871,18 @@ void CWizardUI::CreateControls()
((CNavText*)curWidget->control)->Create(curWidget->value, SS_LEFT, tmpRect, this, ID);
}
else if (widgetType == "EditBox") {
curWidget->control = new CEdit;
curWidget->control = new CEdit;//Added new style parameter ES_AUTOHSCROLL- to allow *GASP* SCROLLING!!
((CEdit*)curWidget->control)->CreateEx(WS_EX_CLIENTEDGE,
_T("EDIT"),
NULL,
WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER,
WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER |ES_AUTOHSCROLL ,
curWidget->location.x,
curWidget->location.y,
curWidget->size.width,
curWidget->size.height,
m_hWnd, 0, 0 );
//Set maximum number of characters allowed per line - limit set to 200
((CEdit*)curWidget->control)->SetLimitText(200);
((CEdit*)curWidget->control)->SetWindowText(curWidget->value);
}
else if (widgetType == "Button") {