Get the monitor settings....

jexd99
jexd99 used Ask the Experts™
on
How I can I tell whether the monitor settings (control panel) are set at 256K, 65K, or True Color, etc.?  I'm using D3, and I need to know this for Win 95/NT .... Is there an api for this, or does Delphi have a way to obtain this informaiton?

      Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
Hi,
you can do this to return the color mode:

procedure TForm1.Button1Click(Sender: TObject);
var
a:integer;
begin
a:=GetDeviceCaps(Form1.Canvas.Handle, BITSPIXEL);
showmessage(inttostr(a));
end;

Regards Barry

Author

Commented:
Thank you :)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial