Print Page | Close Window

Horizntal scrollbar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=1404
Printed Date: 20 July 2025 at 2:56am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Horizntal scrollbar
Posted By: al1976
Subject: Horizntal scrollbar
Date Posted: 13 November 2004 at 7:43am

Hi,

I have an MDI appliaction (CXTPMDIFrameWnd) with CRichEditView that is set to read only.

When I insert text to the view (not by keyboard, by mscomm ctrl) I do get the Veritcal scroll bar but not the horizental scroll bar. I tried to add it using

BOOL CMVTerminalView::PreCreateWindow(CREATESTRUCT& cs)
{
 // TODO: Modify the Window class or styles here by modifying
 //  the CREATESTRUCT cs WS_HSCROLL

 cs.style |=  WS_HSCROLL | ES_MULTILINE;

}

But it doesn't work.

Could someone tell me how to do it the right way (getting horizental scrollbar automatically when text get to the window boundry))?

Thanks.

 



-------------
_Asafl_



Replies:
Posted By: mjm_d
Date Posted: 20 September 2005 at 4:54am

CXTPMDIFrameWnd same too

BOOL CXTPMDIFrameWnd::PreCreateWindow(CREATESTRUCT& cs)
{
 // TODO: Modify the Window class or styles here by modifying
 //  the CREATESTRUCT cs WS_HSCROLL

 cs.style |=  WS_HSCROLL | ES_MULTILINE;

}

maybe




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net