Changing the DialogSize
-
Hi, I have a requirement like i need get system Resolution of the system and based on that i need to increase the size of the DialogBox and place the Bitmap(button) inside the DialogBox ..Bitmap can be obtained from a Resource.dll....(i need to use MFC) Please let me know how can i go with it....
-
Hi, I have a requirement like i need get system Resolution of the system and based on that i need to increase the size of the DialogBox and place the Bitmap(button) inside the DialogBox ..Bitmap can be obtained from a Resource.dll....(i need to use MFC) Please let me know how can i go with it....
So what are you wanting help with: 1) getting the resolution of the system, 2) increasing the size of the dialog box, or 3) placing the bitmap button inside the dialog box?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
So what are you wanting help with: 1) getting the resolution of the system, 2) increasing the size of the dialog box, or 3) placing the bitmap button inside the dialog box?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
Hi, I have a requirement like i need get system Resolution of the system and based on that i need to increase the size of the DialogBox and place the Bitmap(button) inside the DialogBox ..Bitmap can be obtained from a Resource.dll....(i need to use MFC) Please let me know how can i go with it....
see: GetSystemMetrics and MoveWindow/SetWindowPos
-
To get the screen resolution, use
GetSystemMetrics()
orSystemParametersInfo()
. To resize a dialog box, see Chris' answer. For a bitmap button, see here."Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons