TIP: Click on subject to list as thread! ANSI
echo: delphi
to: CARLOS SANCHEZ GARCIA
from: ALEX SHEPETKO
date: 1997-08-27 20:39:00
subject: Win Resolution

ddt.demos.su!f400.n5020!f1.n4625!f30.n4625!server.oaio.savebank!f30.n4625.z2!p
16.f30.n4625.z2!not-for-mail
Hello, Carlos!
19-Aug-97, Carlos Sanchez Garcia wrote to Alex Shepetko
          About: Win Resolution
 CSG>>> How can I know Windows resolution and number of colors from
 CSG>>> Delphi?
 AS>>         From the registry section:
 AS>>          Key: HKEY_CURRENT_CONFIG\Display\Settings
 AS>>          Value: BitsPerPixel
 CSG>     Ummm... it must work also under Win 3.1 :?. I've got Screen.width
 CSG> and
 CSG> screen.height for resoultion, but I wonder what to use for number of
 CSG> colors :?
        Use the WinAPI function GetDeviceCaps. For example:
        BitsPerPixel := GetDeviceCaps (GetDC (0), BITSPIXEL);
Best wishes, Alex Shepetko
--- Terminate 4.00/Pro
---------------
* Origin: P.O.S.T.E. "Elena" Vinnytsia elenavin@sovamua.com (2:4625/30.16)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.