Solved

How to use Win95 functions

Posted on 1997-08-12
1
143 Views
Last Modified: 2010-04-06
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
Comment
Question by:steff
1 Comment
 
LVL 1

Accepted Solution

by:
jackb022197 earned 20 total points
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now