Resizing the dialog box controls
-
hi all, i'm developing an application using MFC dialog. I have to position the buttons and other controls depening on the Size of the screen.can anybody tell me how to do that, if possibel with sample code. My dialog properties is set to MAXIMIZED:(
||SnAkeBed||
-
hi all, i'm developing an application using MFC dialog. I have to position the buttons and other controls depening on the Size of the screen.can anybody tell me how to do that, if possibel with sample code. My dialog properties is set to MAXIMIZED:(
||SnAkeBed||
Do you want to use of WM_SIZE?
-
Do you want to use of WM_SIZE?
-
You should have a message handler for WM_SIZE message in your CDialog class. While resizing, the handler will be called with the dialog's width and height value. Deciside where to place your controls with respect to the size. To position the controls you can use
SetWindowPos(...)
or
MoveWindow(...)
Do your Duty and Don't expect the Result
-
hi all, i'm developing an application using MFC dialog. I have to position the buttons and other controls depening on the Size of the screen.can anybody tell me how to do that, if possibel with sample code. My dialog properties is set to MAXIMIZED:(
||SnAkeBed||
SnaKeBeD wrote:
can anybody tell me how to do that, if possibel with sample code.
See if the Extras section of this article is of any help.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-