Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 179
  • Last Modified:

How to use Win95 functions

Hi.

I want my application to find out the Width and Height og the screen. I look a Win95 function up in the online help called GetScreenWidth (-Height), but how do I get to use it? I cant just write

var
  In1 : Integer;
begin
  In1 := GetScreenWidth;
..
..

How do I get to use these Win95 functions?

Thanx - Steff.
0
steff
Asked:
steff
1 Solution
 
jackb022197Commented:
How about using the GetSystemMetrics function:

var
  ScrHeight, ScrWidth: integer;
begin
  ..
  ScrWidth := GetSystemMetrics(SM_CXSCREEN);
  ScrHeight := GetSystemMetrics(SM_CYSCREEN);
  ..
end;

See the help for more info

0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now