🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: DisplayFrequence and BitsPerPel

#9573
From: Edward
Date: Mon, 05 Jul 2004 02:22
26 lines
1539 bytes
  HDC  hdc;
  int  desktop_bpp;

  hdc = GetDC(GetDesktopWindow());
  if ( hdc != NULL )
  {
    desktop_bpp = GetDeviceCaps(hdc, BITSPIXEL) * GetDeviceCaps(hdc,
PLANES);
    MemoLOG->Lines->Add(AnsiString("Qualidade de Cor: ") + desktop_bpp +
AnsiString(" bits."));
  }


"Zannha" <lars.boldt@effekt.no> escreveu na mensagem
news:4031e5b9$1@newsgroups.borland.com...
> Hi,
>
> I use the Screen-> object to read out the current width and height
> (resolution) of the user.
>
> What API commands to read out how many colors the user have set, and what
> frequence the monitor is running at?
>
> Thanks
>
>
Technical Details
Message-ID: <40e8bb6e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4031e5b9$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d86321a253031fbc
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Edward" <Registrados2004@aol.com>
From: "Edward" <Registrados2004@aol.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4031e5b9$1@newsgroups.borland.com>
Subject: Re: DisplayFrequence and BitsPerPel
Date: Sun, 4 Jul 2004 23:22:25 -0300
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 200.213.49.155
Message-ID: <40e8bb6e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1088994158 200.213.49.155 (4 Jul 2004 19:22:38 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail