home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / mswindo / programm / misc / 972 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.4 KB

  1. Xref: sparky comp.os.ms-windows.programmer.misc:972 comp.windows.ms.programmer:7329
  2. Newsgroups: comp.os.ms-windows.programmer.misc,comp.windows.ms.programmer
  3. Path: sparky!uunet!cs.utexas.edu!wotan.compaq.com!twisto.eng.hou.compaq.com!sword.eng.hou.compaq.com!mccreary
  4. From: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
  5. Subject: Re: hiding scrollbars when not needed
  6. Message-ID: <1992Jul23.143211.20968@twisto.eng.hou.compaq.com>
  7. Sender: news@twisto.eng.hou.compaq.com (Netnews Account)
  8. Organization: Compaq Computer Corp.
  9. References: <620@irst.UUCP>
  10. Date: Thu, 23 Jul 1992 14:32:11 GMT
  11. Lines: 21
  12.  
  13. In article <620@irst.UUCP> dz@irst.UUCP (Massimo Dal Zotto) writes:
  14. >
  15. >I would like to know if it's possible to hide the scrollbars in a window,
  16. >created with the style attributes WS_VSCROLL and WS_HSCROLL, when the 
  17. >entire document fits in the window so that scrolling is not needed.
  18. >I know that I could create the scrollbar controls explicitly, but this
  19. >requires also positioning and controlling them, so I would prefer to use
  20. >the standard window scrollbars if possible.
  21. >Thanks in advance.
  22. >
  23. >Massimo  Dal Zotto
  24. >
  25.  
  26. Use SetScrollRange with nMinPos and nMaxPos set to zero.  This will hide
  27. them.
  28.  
  29.  
  30. --
  31. McCreary@sword.eng.hou.compaq.com     Computers are like Old Testament gods;
  32. Me? Speak for Compaq?  Yeah, right.   lots of rules and no mercy.
  33. "By this time my lungs were aching for air..."               Joseph Campbell
  34.