Solved

Screen Size

Posted on 1999-01-11
3
160 Views
Last Modified: 2013-11-20
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
Comment
Question by:backdraf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 23

Accepted Solution

by:
naveenkohli earned 50 total points
ID: 1327503
Call
CWnd::GetWindowRect() for the window you want the area. This area is in Pixel units.
0
 

Expert Comment

by:dagangwang
ID: 1327504
Use GetSystemMetrics function like this:
int x = GetSystemMetrics( SM_CXSCREEN );
int y = GetSystemMetrics( SM_CYSCREEN );

0
 

Author Comment

by:backdraf
ID: 1327505
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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question