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