Click here to Skip to main content
Click here to Skip to main content

Tagged as

Go to top

Convert Dialog Resource Units to Pixels

, 15 Sep 2011
Rate this:
Please Sign up or sign in to vote.
This tip shows you how to convert the dimension values in the .rc file of a dialog into pixels
Given a rectangle rcDlg which contains the rc file coordinates of a dialog resource, use the following code:
CDialog *pDlg = m_pDlg;
P.S. Special thanks goes to Jacques Raphanel for this solution.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Mukit, Ataul
Chief Technology Officer Rational Technologies
Bangladesh Bangladesh
You don't learn patterns, you just code it.
Follow on   Twitter

Comments and Discussions

-- There are no messages in this forum --
| Advertise | Privacy | Mobile
Web03 | 2.8.140926.1 | Last Updated 15 Sep 2011
Article Copyright 2011 by Mukit, Ataul
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid