🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

SelectObject?

#13150
From: Taichi
Date: Tue, 28 Oct 2003 08:20
16 lines
1468 bytes
SelectObject will selects an object into the specified device context. The
new object replaces the previous object of the same type:

  OldMemBitmap := SelectObject (MemDc, MemBitmap);
  ... ... ...
  ... ... ...
  SelectObject (MemDc, OldMemBitmap);
  DeleteDc (MemDc);



SelectObject (MemDc, OldMemBitmap)  will select the orginal bitmap handle
back to the MemDC.
My question is, why is this needed? whereas the MemDC will be deleted from
memory after that? I think to select the orginal bitmap handle back to the
MemDC in this case is useless, am I right????
Technical Details
Message-ID: <3f9f78fa@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!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

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,9ef19e51733ab29,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-29 00:28:53 PST
Reply-To: <Taichi>
From: <Taichi>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: SelectObject?
Date: Tue, 28 Oct 2003 15:20:35 +0700
Lines: 20
Organization: Taichi
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
NNTP-Posting-Host: 202.81.61.49
Message-ID: <3f9f78fa@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1067415802 202.81.61.49 (29 Oct 2003 00:23:22 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!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