Board index » Visual Studio » How to resize a dialog with out having border
|
jtippell
|
|
jtippell
|
How to resize a dialog with out having border
Visual Studio186
Hi All, I created a dialog based application in MFC.I would like to resize the dialog during runtime,so i have changed the dialog border style to "Resize".After this,the dialog is having border aound this.But i don't want want this border. Is there anyway to resize the dialog without having border? Please help me on this problem.. Thanks in advance, Muthu. - |
| Jonathan
Registered User |
Tue Jun 13 12:52:38 CDT 2006
Re:How to resize a dialog with out having border
First off, are we to understand that you want the dialog to be able to be
resized using the mouse and not from code? If from code, you can simply resize the dialog box using something like SetWindowPos. If you want it to be resized via the mouse, why not have a border? The border provides a visual clue, particular for people who are familiar with Windows, that the window can be resized. It also provides a resizing area for the mouse. I think it's bad design to add non-standard things like this to the user interface. Finally, if this is really what you want to do regardless of if it may confuse the users, you can code it yourself. You'll need to decide the area where the mouse can resize the window and determine when the mouse goes down in this area. You may very well need to then track mouse movement yourself (use SetCapture) and resize the window via code as the mouse is moved; however, it seems like there may be an API for tracking this for you once the initial mouse down but I can't recall for sure or what the name would be. -- Jonathan Wood SoftCircuits Programming www.softcircuits.com">www.softcircuits.com <muthupandi.s@gmail.com>wrote in message QuoteHi All, - |
| Ajay
Registered User |
Tue Jun 13 13:13:38 CDT 2006
Re:How to resize a dialog with out having border
You can do this programmatically (if thats what you want) using
SetWindowPos. --- Ajay muthupandi.s@gmail.com wrote: QuoteHi All, |
