TIP: Click on subject to list as thread! ANSI
echo: delphi
to: CARLOS SANCHEZ GARCIA
from: DANNYS TANAYEFF
date: 1997-08-29 02:52:00
subject: Re: Win Resolution

Приветик, Carlos!
20 Aug 97, Carlos Sanchez Garcia wrote to Alex Shepetko:
 AS>> From the registry section:
 AS>> Key: HKEY_CURRENT_CONFIG\Display\Settings
 AS>> Value: BitsPerPixel
 CG>     Ummm... it must work also under Win 3.1 :?. I've got Screen.width 
nd
 CG> screen.height for resoultion, but I wonder what to use for number of
 CG> colors :?
The GetDeviceCaps maybe help you!!!!
procedure TForm1.Button2Click(Sender: TObject);
var
dc:hwnd;
begin
 dc:=getdc(0);
 label1.caption:=inttostr(getdevicecaps(dc,logpixelsx));
 label2.caption:=inttostr(getdevicecaps(dc,logpixelsy));
end;
And try to see help on GetDeviceCaps.
Пишите письма: dummy_mot@minas.rosmail.com
Рулезов вам всяких.....
                        Tanayeff Dannys
--- GoldED/386 2.50.A0307+
---------------
* Origin: Dummy point (2:50/702.30)

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™.