🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Lots of data

#12058
From: Ed Mulroy [TeamB]
Date: Thu, 01 Jan 2004 13:33
39 lines
2528 bytes
Try creating an in memory bitmap the size of the client window.  Write each
element you wish to display on to that bitmap.  When a screen update is
needed you would then only perform one BitBlt, a call which copies that one
bitmap to the screen.

.  Ed

> M. Finch wrote in message
> news:3ff41d43$1@newsgroups.borland.com...
> I am continuing to work on an application that shows the world map, and
> hopefully someday be able to display the active aircraft in the US and
> possibly elsewhere.  My test file only has 160 points, but certainly
someday
> there could be thousands to plot.
>
> In drawing my test file, I have a small bitmap that I've found (120x100)
to
> display.  I've tried Bitblt to dispay the 160 points, but it took a few
> seconds to go through the 160 points in the list to display them.
> Alternatively I've drawn a crude picture using MoveToEx and LineTo which
> took negligible time to draw, but the display is crude at best.
>
> I'm interested in finishing this using API if possible.  But the BitBlt
MUST
> go.  Any ideas on what I can use that would be faster?  I'm aware that it
> would be faster using DirectX or OpenGL, but I'd like to finish this
first.
>
> Here's the code that I'm using to draw the Bitmap.  I work my way through
> the list calling this for each point.
> -------
>   HDC hdcMem = CreateCompatibleDC(NULL);
>   HBITMAP hbmT = SelectBitmap(hdcMem,hbm);
>
>   BITMAP bm;
>   GetObject(hbm,sizeof(bm),&bm);
>
>   BitBlt(hdc,0,0,bm.bmWidth,bm.bmHeight,hdcMem,0,0,SRCCOPY);
> -------
Technical Details
Message-ID: <3ff421ca$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3ff41d43$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,894ad098f15950e6
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-01 05:39:15 PST
From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ff41d43$1@newsgroups.borland.com>
Subject: Re: Lots of data
Date: Thu, 1 Jan 2004 08:33:47 -0500
Lines: 41
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.1106
NNTP-Posting-Host: 24.74.175.102
Message-ID: <3ff421ca$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1072964042 24.74.175.102 (1 Jan 2004 05:34:02 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail