Create a user32.decls file, or add this line to an existing one:
Then in BB
That should do the trick.
Note: This will return the desktop size so you might want to do something like:
User32_GetSystemmetrics%( flags% ):"GetSystemMetrics"
Then in BB
nTemp% = User32_GetSystemmetrics(0) ; Width nTemp% = User32_GetSystemmetrics(1) ; Height
That should do the trick.
Note: This will return the desktop size so you might want to do something like:
screenx = User32_GetSystemmetrics(0)-6 ; Width screeny = User32_GetSystemmetrics(1)-45 ; Heightto make space for borders and the task bar.