🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

device context

#13307
From: Alain R.
Date: Mon, 20 Oct 2003 06:18
14 lines
1201 bytes
Hi,

I one of my function, i want to retrieve my component device context using
GetDC.
My component which will be the target of GetDC will not necessary be the
same everytime...
in all documentation, i can see hWnd hdc = GetDC(0);
but this retrieve handle of the screen.

How can i retrieve DC of the current component ? I tried
GetDC(componentHandle) but it doesn't work too :(

tia,
Alain
Technical Details
Message-ID: <3f937e3b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,2938bb3c4c23629c,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-19 23:39:00 PST
From: "Alain R." <no.valid@email.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: device context
Date: Mon, 20 Oct 2003 08:18:45 +0200
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 62.168.93.157
Message-ID: <3f937e3b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066630715 62.168.93.157 (19 Oct 2003 23:18:35 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail