how to get screensize?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by hkey.

Aren't there any systemvariables in Purebasic to get the screenwidth and screenheight? I want to place a little window in the upper right corner of the screen. That would be no problem, if I knew the screenwidth...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Froggerprogger.

You can use the API GetSystemMetrics_(), but I haven't the Parameters in mind - only the Parameter #CXSCREEN or #CYSCREEN, but not the others. Look up in the WIN32.HLP

Purebasic - what a nice name for a girl-friend
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fweil.

...,

GetSystemMetrics_(#SM_CXScreen) and GetSystemMetrics_(#SM_CYScreen) is the right syntax for using API.

Rgrds

Francois Weil
14, rue Douer
F64100 Bayonne
sybixsus
User
User
Posts: 14
Joined: Mon Jul 21, 2003 12:28 pm
Location: UK

Post by sybixsus »

At the risk of looking stupid ( it's a risk I take every time I open my mouth ) where should I download Win32.hlp?
Saboteur
Enthusiast
Enthusiast
Posts: 272
Joined: Fri Apr 25, 2003 7:09 pm
Location: (Madrid) Spain
Contact:

Post by Saboteur »

Here is one location:

ftp://ftp.cs.virginia.edu/pub/lcc-win32/win32hlp.exe

Perhaps there are some other more recent. But you can look at msdn too.
[:: PB Registered ::]

Win10 Intel core i5-3330 8GB RAM Nvidia GTX 1050Ti
Post Reply