home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / mswindo / programm / misc / 1390 < prev    next >
Encoding:
Text File  |  1992-08-18  |  1.2 KB  |  30 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!pacbell.com!pacbell!sactoh0!sap
  3. From: sap@sactoh0.sac.ca.us (Stephan A. Puga)
  4. Subject: Using listbox to display info
  5. Message-ID: <1992Aug18.163232.19620@sactoh0.sac.ca.us>
  6. Organization: Sacramento Public Access Unix
  7. Date: Tue, 18 Aug 92 16:32:32 GMT
  8. Lines: 20
  9.  
  10. I am using a listbox to display information and I wanted it to
  11. automatically scroll when a new line is added.  The biggest problem
  12. I am having is finding the best way to remove the annoying green
  13. bar!  I think I have solved the problem of a user being able to
  14. select a line by setting the focus back to the parent window when a
  15. line is clicked on.
  16.  
  17. I am currently using two SendMessage calls to scroll the window by
  18. LB_GETCURSEL and the second to turn off the green bar.
  19. Unfortunately, this method causes the green bar to flash
  20. annoyingly.  If anyone has found a good workaround, please let me
  21. know!
  22.  
  23. Thanks!
  24.  
  25. -- 
  26. #############################################################
  27. # "Its been surreal!"         #     sap@sactoh0.SAC.CA.US   #  
  28. #     -- Gogo Dodo            # UUCP=..ames!pacbell!sactoh0 #
  29. #############################################################
  30.