d00_ape Posted October 19, 2004 Share Posted October 19, 2004 This is surely an easy q for you but I don?t remember how to do it? How do I get the size of the users screen? Link to comment Share on other sites More sharing options...
0 random_user_uk_1234 Posted October 19, 2004 Share Posted October 19, 2004 in which language? Link to comment Share on other sites More sharing options...
0 anthonycara Posted October 19, 2004 Share Posted October 19, 2004 vb6 is screen.width + screen.height Link to comment Share on other sites More sharing options...
0 hdood Posted October 19, 2004 Share Posted October 19, 2004 If you're using the Win32 API, getting the size of the primary screen is simple: int cx, cy; cx = GetSystemMetrics(SM_CXSCREEN); cy = GetSystemMetrics(SM_CYSCREEN); printf("Resolution is %lix%li\n", cx, cy); For more than one screen, you will need to traverse the devices with EnumDisplayDevices and get HORZRES/VERTRES of each screen with GetDeviceCaps. Link to comment Share on other sites More sharing options...
Question
d00_ape
This is surely an easy q for you but I don?t remember how to do it?
How do I get the size of the users screen?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts