How i can get Desktop size ?

Blitz3D Forums/Blitz3D Programming/How i can get Desktop size ?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

It uses "user32.dll" that ships with any version of windows. You just need to copy and past
; User32.decls
;
.lib "user32.dll"
User32_GetSystemMetrics% (nIndex%) : "GetSystemMetrics"
in a .decls file (say "user32.decls") and to put it in your "Blitz3D\userlibs" directory. And then in blitz you can do
Global DesktopWidth  = User32_GetSystemMetrics(0)
Global DesktopHeight = User32_GetSystemMetrics(1)