🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Getting text from an external Grid

#2414
From: Dan
Date: Thu, 01 Mar 2007 19:05
10 lines
1536 bytes
  > W = GetDeviceCaps( hDC, HORZRES );
> H = GetDeviceCaps( hDC, VERTRES );

Seems to get the Application size, not the actual component (eg. label) 
size.

> Basically, besides adjusting the size of the created bitmap, you use
> StretchBlt instead of BitBlt to capture the image.

True,.. but this only works if I know the size of the component :)
Technical Details
Message-ID: <45e72444$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45e59a3a$1@newsgroups.borland.com> <45e5bb7e$1@newsgroups.borland.com> <45e5cfa5$1@newsgroups.borland.com> <45e5f6d3@newsgroups.borland.com> <45e5fd07$1@newsgroups.borland.com> <45e60f88$1@newsgroups.borland.com> <45e6f2f0$1@newsgroups.borland.com> <lnvdu29ua6a88fpbfof4eu9pb4d7t42pm4@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3d58209a1f02789a
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 01 Mar 2007 13:05:38 -0600
From: Dan <Dan@do.not.spam>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Getting text from an external Grid
References: <45e59a3a$1@newsgroups.borland.com> <45e5bb7e$1@newsgroups.borland.com> <45e5cfa5$1@newsgroups.borland.com> <45e5f6d3@newsgroups.borland.com> <45e5fd07$1@newsgroups.borland.com> <45e60f88$1@newsgroups.borland.com> <45e6f2f0$1@newsgroups.borland.com> <lnvdu29ua6a88fpbfof4eu9pb4d7t42pm4@4ax.com>
In-Reply-To: <lnvdu29ua6a88fpbfof4eu9pb4d7t42pm4@4ax.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 216.174.165.174
Message-ID: <45e72444$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1172776004 216.174.165.174 (1 Mar 2007 11:06:44 -0800)
Lines: 10
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail