CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2008
    Posts
    2

    Question Auto-scroll pause while view receives new messages based on Rich Edit View

    Dear all,

    First of all, I am stuck in vertical auto-scroll pause during receiving new messages.
    This is already applied to commercial messengers, Visual C++ debugging window, etc.

    When user clicks left button in those window, the vertical scroll is stopped but messages are stack up continuously.
    This is needed to my project as attached.

    The attached project is made with SDI and rich edit view.
    In main view, I would like to add new process module for thest purposes in OnLButtonUp().
    In this function, ES_AUTOVSCROL is removed to remove auto-scroll but this window style is newly set afterwards as follows..

    dwStyle = GetWindowLong(m_hWnd, GWL_STYLE);
    // Changes an attribute of the specified window for style change.
    dwStyle &= ~ES_AUTOVSCROLL;
    dwStyle = SetWindowLong(m_hWnd, GWL_STYLE, dwStyle);

    Please give me your valuable tips and solutions.

    Thanks and regards,
    Jay
    Attached Files Attached Files

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    894

    Re: Auto-scroll pause while view receives new messages based on Rich Edit View

    I'm not sure I understand what the issue is here. I downloaded and tried your project but it's too much code to go through. So if you need some assistance you will have to rephrase your problem and isolate the chunk of code that is causing the issue and post it here. Leaving your whole project is too early at this stage, since many people on this forum might be too busy to look at it.

    From the standpoint of a project itself, you have more than the problem that you brought up here. You definitely have a memory leak or some other issue when the app closes, so I'd look into it as well.

Tags for this Thread

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