Thread: Windows 98 Auto Scroll Problem

  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    21

    Windows 98 Auto Scroll Problem

    Greetings all,

    Im having a really torrid time trying to figure out an auto-scroll problem im having with an application running under Windows 98.
    Ive wrote this simple application which serves like a chat client and uses a rich edit control for the incoming text to be displayed.

    Ive wrote the client in C and am NOT using MFC, Ive just used Visual Studio's Resource manager to make the dialog box.

    Im not sure if the autoscroll problem is related to the Rich Edit Control as I dont have a windows 98 machine so its tricky for me to test but its been reported to me by people who use the app and its driving them nuts, so im trying to figure out a fix.

    Im loading this Rich Edit control by loading the library Riched32.dll and this loads fine on XP, 2000 and 98 but when new text is added on 98 the control doesnt auto-scroll when it reaches the bottom. Apparently they can also manually scroll much further down where there is no data either.

    My resource files looks like this :

    Code:
    CONTROL         "",IDC_RICHEDIT2,"RICHEDIT",ES_MULTILINE | 
                        ES_AUTOVSCROLL | ES_READONLY | WS_BORDER | WS_VSCROLL | 
                        WS_TABSTOP,7,7,459,286
    So im adding the Autoscroll correctly when its created. Is there message I can send to the control to say "you must auto-scroll" after each piece of text I add to the control ?

    Its difficult for me to test because I only have 2000 where it functions like it should so any suggestions people may have as to why this could be happening on 98 would be greatly appreciated.

    Thank you.

    Stan

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    The messages of interest are EM_SETSEL, EM_REPLACESEL and EM_SCROLLCARET. A board search should point you in the right direction.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User
    Join Date
    Apr 2004
    Posts
    21
    Thank you very much Ken, after using those messages its scrolls correctly now.

    Stan

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. LoadFromFile() causes Windows 98 to freeze?
    By MidnightlyCoder in forum Windows Programming
    Replies: 8
    Last Post: 03-17-2006, 02:23 PM
  2. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 10:00 AM
  3. Problem with Scroll Bar
    By Garfield in forum Windows Programming
    Replies: 8
    Last Post: 11-05-2001, 05:34 AM
  4. Problem with Scroll Bar
    By Garfield in forum Windows Programming
    Replies: 3
    Last Post: 11-01-2001, 02:23 PM
  5. SDI Menu problem - Windows MSVC 6.0
    By Brown Drake in forum C++ Programming
    Replies: 0
    Last Post: 10-13-2001, 06:04 AM