Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Adding horizental scrollbar to MDI child
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Adding horizental scrollbar to MDI child

 Post Reply Post Reply
Author
Message
al1976 View Drop Down
Newbie
Newbie
Avatar

Joined: 27 September 2004
Location: Israel
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote al1976 Quote  Post ReplyReply Direct Link To This Post Topic: Adding horizental scrollbar to MDI child
    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

     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_
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.