Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Horizntal scrollbar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Horizntal scrollbar

 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: Horizntal scrollbar
    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_
Back to Top
mjm_d View Drop Down
Newbie
Newbie


Joined: 20 September 2005
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote mjm_d Quote  Post ReplyReply Direct Link To This Post 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

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.203 seconds.