Solved

Screen Size

Posted on 1999-01-11
3
157 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
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Running shell command from Access 3 72
repeatEnd java challenge 42 84
sumNumber challenge 16 122
wait notify demo infinite loop 3 110
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

776 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