Click here to Skip to main content
15,912,507 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DONT ASK PARAMEETR FOR SETUP Pin
Tarundeep Singh Kalra4-Mar-05 8:25
Tarundeep Singh Kalra4-Mar-05 8:25 
GeneralGetting DIALOG sizes... how to? [ FIGUEIRA EX MACHINA needed] Pin
Lvca4-Mar-05 4:25
Lvca4-Mar-05 4:25 
GeneralRe: Getting DIALOG sizes... how to? [ FIGUEIRA EX MACHINA needed] Pin
Ravi Bhavnani4-Mar-05 4:42
professionalRavi Bhavnani4-Mar-05 4:42 
GeneralRe: Getting DIALOG sizes... how to? [ FIGUEIRA EX MACHINA needed] Pin
Lvca4-Mar-05 5:41
Lvca4-Mar-05 5:41 
GeneralRe: Getting DIALOG sizes... how to? [ FIGUEIRA EX MACHINA needed] Pin
Ravi Bhavnani4-Mar-05 5:57
professionalRavi Bhavnani4-Mar-05 5:57 
GeneralRe: Getting DIALOG sizes... how to? [ FIGUEIRA EX MACHINA needed] Pin
Lvca4-Mar-05 6:20
Lvca4-Mar-05 6:20 
GeneralRe: Getting DIALOG sizes... how to? [ FIGUEIRA EX MACHINA needed] Pin
Ravi Bhavnani4-Mar-05 6:25
professionalRavi Bhavnani4-Mar-05 6:25 
GeneralRe: Getting DIALOG sizes... how to? [ FIGUEIRA EX MACHINA needed] Pin
David Crow4-Mar-05 7:29
David Crow4-Mar-05 7:29 
Lvca wrote:
exactly the coordinates where the device places the dialog automatically.. they're different from the values on my .rc file...

As has already been mentioned, the values in the .rc file are in dialog base units (DBUs), which are device-independent. These are different than pixels. The reason, and benefit, for this is so that an application can use a single template to create the same dialog box for all types of display devices. This ensures that a dialog box will have the same proportions and appearance on all screens despite differing resolutions and aspect ratios between screens.

Last time I bothered messing with them, one DBU was equal to about 1/4 the size of a system-font character. Using a different font changes this ratio. To get the number of pixels per DBU for the current display, use the GetDialogBaseUnits() function


"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


GeneralRe: Getting DIALOG sizes... how to? [ FIGUEIRA EX MACHINA needed] Pin
Blake Miller4-Mar-05 7:49
Blake Miller4-Mar-05 7:49 
GeneralWM_PAINT Pin
Anonymous4-Mar-05 3:48
Anonymous4-Mar-05 3:48 
GeneralRe: WM_PAINT Pin
RChin4-Mar-05 4:14
RChin4-Mar-05 4:14 
GeneralRe: WM_PAINT Pin
Anonymous4-Mar-05 14:48
Anonymous4-Mar-05 14:48 
GeneralRe: WM_PAINT Pin
Ranjish4-Mar-05 20:12
Ranjish4-Mar-05 20:12 
GeneralHelp with linker errors Pin
l0t3k4-Mar-05 3:43
l0t3k4-Mar-05 3:43 
GeneralVisual Studio IDE Pin
Gabor Kalman4-Mar-05 2:47
Gabor Kalman4-Mar-05 2:47 
GeneralI'm searching for Visual C++ Books Pin
fracco4-Mar-05 1:16
fracco4-Mar-05 1:16 
GeneralRe: I'm searching for Visual C++ Books Pin
Jetli Jerry4-Mar-05 2:35
Jetli Jerry4-Mar-05 2:35 
GeneralRe: I'm searching for Visual C++ Books Pin
ur_unholyness4-Mar-05 7:29
ur_unholyness4-Mar-05 7:29 
GeneralRe: I'm searching for Visual C++ Books Pin
Anand for every one4-Mar-05 19:39
Anand for every one4-Mar-05 19:39 
GeneralSending a digitally signed email Pin
Muhammad Irfan Azam4-Mar-05 1:04
Muhammad Irfan Azam4-Mar-05 1:04 
Questionglobally scoped array of objects? Pin
baxybaxy4-Mar-05 0:51
baxybaxy4-Mar-05 0:51 
AnswerRe: globally scoped array of objects? Pin
Steen Krogsgaard4-Mar-05 4:14
Steen Krogsgaard4-Mar-05 4:14 
GeneralRe: globally scoped array of objects? Pin
Chris Meech4-Mar-05 5:42
Chris Meech4-Mar-05 5:42 
GeneralRe: globally scoped array of objects? Pin
Steen Krogsgaard6-Mar-05 21:05
Steen Krogsgaard6-Mar-05 21:05 
QuestionWhat is the Mystery behind Release Folder ? Pin
zahid_ash4-Mar-05 0:36
zahid_ash4-Mar-05 0:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.