🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7918

Re: Scrollbars size

#7918
From: Bob Gonder
Date: Wed, 15 Dec 2004 17:11
24 lines
1885 bytes
"Francesco" <> wrote:

>I can get the size of scrollbars with command
>GetSystemMetrics(SM_CXVSCROLL) but how can I set the size I want?? It
>should exist smth like SetSystemMetrics!

I think you have to use your own scroll bar controls, not the default
scroll bars.

See in Win32.hlp:
Standard Scroll Bars and Scroll Bar Controls

A scroll bar control can have a number of styles that serves to
control the orientation and position of the scroll bar. You specify
the styles that you want when you call the CreateWindowEx function to
create a scroll bar control. Some of the styles create a scroll bar
control that uses a default width or height. However, you must always
specify the x- and y-coordinates and the other dimensions of the
scroll bar. Following are the scroll bar control styles. 
{etc}

Then, farther in...
Creating Scroll Bars
{code showing how to create your own sized bars}
Technical Details
Message-ID: <eor0s05df5i826pqoadvkrl0dqi8et6hlf@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!newsread.com!newsprint.newsread.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41c05b55$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,63c10a08433e3f08,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Scrollbars size
Date: Wed, 15 Dec 2004 09:11:00 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <eor0s05df5i826pqoadvkrl0dqi8et6hlf@4ax.com>
References: <41c05b55$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.147.211
X-Trace: newsgroups.borland.com 1103130657 67.77.147.211 (15 Dec 2004 09:10:57 -0800)
Lines: 27
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!newsread.com!newsprint.newsread.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail