Easy question needs answering
I am wanting to put some CButtons on my dialog that are the same size as buttons on toolbars. Problem is I dont know how big the buttons on toolbars are. Also, just for my own enlightenment, are the rulers on the dialog editors measured in pixels or what? I dont know where to find this type of info, so if you know please help a brotha out.
Thanks
Re: Easy question needs answering
hi,
U can get the toolbar button size using GetItemRect. U can set the size of the button using that rectangle.
Regards,
soundar
Re: Easy question needs answering
>> ...are the rulers on the dialog editors measured in pixels or what?
They are measured in Dialog Box Units, also called DLUs.
From MSDN:
"Dialog Unit:
A unit of horizontal or vertical distance within a dialog box. A horizontal DLU is the average width of the current dialog-box font divided by 4. A vertical DLU is the average height of the current dialog-box font divided by 8."