Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Display size

ltabarov
Beginner
360 Views
How can I determine the size (in pixels) of the available display? I need this information for adjusting the Frame Window to the actual display size.
0 Kudos
2 Replies
Jugoslav_Dujic
Valued Contributor II
360 Views
Use either

GetSystemMetrics(SM_CXSCREEN/SM_CYSCREEN)

or, better,

SystemParemetersInfo(SPI_GETWORKAREA).

The latter takes into account taskbar settings.

Jugoslav
0 Kudos
ltabarov
Beginner
360 Views
Thanks, Jugoslav. It works for me.

ltabarov
0 Kudos
Reply