CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2003
    Posts
    731

    edit box does not have scrollbars?

    I am creating an edit box with the following code:
    Code:
    	if (!m_Edit.Create(ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_AUTOHSCROLL | ES_AUTOVSCROLL | ES_WANTRETURN,// | ES_READONLY, 
    		CRect(0,0,0,0), this, 1234))
    		return -1;
    	
    	m_Edit.ModifyStyleEx(0, WS_EX_DLGMODALFRAME | WS_EX_CLIENTEDGE | WS_EX_STATICEDGE);
    Don't worry about the CRect(0,0,0,0), this automatically fits the occuping window but the scroll bars never show up even when it is full of text. How to enable scroll bars?
    Good Answers, Good Points.

  2. #2
    Join Date
    May 2005
    Location
    Oregon
    Posts
    3,725

    Re: edit box does not have scrollbars?

    I am in hurry have a look on this links
    http://www.codeguru.com/cpp/controls...cle.php/c3917/

    and
    http://www.winehq.org/pipermail/wine...er/013629.html

    Hope this Will help you
    Thanx
    Last edited by humptydumpty; June 24th, 2006 at 12:08 PM.

  3. #3
    Join Date
    Jul 2003
    Posts
    731

    Re: edit box does not have scrollbars?

    I tried this but it didn't work properly. (The CScrollEdit class).

    It shows disabled scroll bars first but when I edit, it removes the scroll.

    I am in fact using this in a floating windowfrom here.

    But CEdit is the one which takes over that window so if CEdit works well, I don't think the rest of frame work would mess with it.

    The scrollbars does disappear when I put text in it.
    Good Answers, Good Points.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured