Screen Size

How do i find out the dimensions of the screen area in pixels? I need these coordinates to use in conjuction with the CWD::MoveWindow function.
backdrafAsked:
Who is Participating?
 
naveenkohliCommented:
Call
CWnd::GetWindowRect() for the window you want the area. This area is in Pixel units.
0
 
dagangwangCommented:
Use GetSystemMetrics function like this:
int x = GetSystemMetrics( SM_CXSCREEN );
int y = GetSystemMetrics( SM_CYSCREEN );

0
 
backdrafAuthor Commented:
dagangwang's answer is the one i was looking for, thank you ;)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.