|
-
August 10th, 2001, 10:36 AM
#1
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
-
August 10th, 2001, 11:53 AM
#2
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
-
August 10th, 2001, 12:29 PM
#3
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."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|