rezolutie monitor

Acest forum este dedicat intrebarilor de Windows API, folosing C/C++
Post Reply
danna
Membru
Membru
Posts: 62
Joined: 25 Jul 2007, 10:02

rezolutie monitor

Post by danna » 21 Aug 2008, 11:13

As vrea sa stiu cum pot afla rezolutia la care e setat monitorul, 1024x768, 1280x1024, etc.



User avatar
MrSmersh
Microsoft MVP
Microsoft MVP
Posts: 289
Joined: 20 Jul 2007, 10:18
Location: Timisoara
Contact:

Re: rezolutie monitor

Post by MrSmersh » 21 Aug 2008, 11:48

GetSystemMetrics http://msdn.microsoft.com/en-us/library ... 85%29.aspx.
Pentru rezolutie de exemplu asa e la mine in cod

Code: Select all

_stprintf(lpszBuff,"%ldX%ld pixels",GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN)); 

Post Reply