Article View: borland.public.cppbuilder.nativeapi
Article #14174Re: Scroll Bars
From: Rodolfo Frino
Date: Wed, 03 Sep 2003 10:54
Date: Wed, 03 Sep 2003 10:54
30 lines
1676 bytes
1676 bytes
Via the GetScrollInfo API:
int IsScrollBarVisible(void* handle, int BarType)
{
// 1 Scroll Bar is Visible
// 0 Scroll Bar is Not Visible
// -1 Illegal BarType input
// -2 Illegal BarType input
if (!handle)
return -1; // Illegal handle
if (BarType == SB_HORZ || BarType == SB_VERT)
{
SCROLLINFO si;
SCROLLINFO* psi = &si;
psi->fMask = SIF_ALL; // Include this one or it will give
wrong results
if (GetScrollInfo(handle, BarType, psi) &&
(psi->nMin || psi->nMax))
return 1;
else
return 0;
}
else
return -2; // Illegal BarType
}
Rodolfo
Technical Details
Message-ID:
<3f55c90d@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f5524d2$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,359104d6b2f9c05a X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-09-03 04:01:13 PST From: "Rodolfo Frino" <rodolfofrino@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f5524d2$1@newsgroups.borland.com> Subject: Re: Scroll Bars Date: Wed, 3 Sep 2003 20:54:09 +1000 Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 203.206.21.35 Message-ID: <3f55c90d@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1062586637 203.206.21.35 (3 Sep 2003 03:57:17 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail