Print Page | Close Window

Adding horizental scrollbar to MDI child

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1365
Printed Date: 07 June 2025 at 12:41pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Adding horizental scrollbar to MDI child
Posted By: al1976
Subject: Adding horizental scrollbar to MDI child
Date Posted: 03 November 2004 at 10:27am

Hi,

I have an MDI application (with view that inherits CRichEditView) and I use Office2003 theme.

When I open a new document and the text exceeds the vertical boundries the vertical scrollbar

appears fine. But when I cross the horizental boundries I don't get an horizental scrollbar at all and the text wraps to next line. I'm also using docking panes, and sometimes when I move them the horizen scrollbar sunddenly appears (???).

I tried to add horizen scrollbar to the View like this:

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

     file://cs.style - cs.style |=  WS_HSCROLL ;

 return CRichEditView::PreCreateWindow(cs);
}

And it works (horizen scrollbar appears) but it makes the view to be a single line.

Please let me know how can I add horizen scrollbar.

Thanks a lot.



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



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