• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 165
  • Last Modified:

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.
0
backdraf
Asked:
backdraf
1 Solution
 
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now