From 22a2b36e248b20bb15a5bbcc603e18ae71ef9fdb Mon Sep 17 00:00:00 2001 From: "varada%netscape.com" Date: Fri, 17 Sep 1999 00:05:25 +0000 Subject: [PATCH] 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) --- cck/driver/WizardUI.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cck/driver/WizardUI.cpp b/cck/driver/WizardUI.cpp index 01d0e8d0acc..ff1d17ef94c 100644 --- a/cck/driver/WizardUI.cpp +++ b/cck/driver/WizardUI.cpp @@ -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") {