Discussion:
How to make a Dialog resizable
(too old to reply)
Larry
2010-02-16 01:30:17 UTC
Permalink
Hi,

I am dealing with dialog window created usign ResEdit as a resource
editor. Now, I'd need to make a window resizable and to have all the child
controls in it resize themselves according to the dialog size. Can iy
actually be done?


This is the code for the dialog:

[code]
//
// Dialog resources
//

IDD_POPUP DIALOG 25, 25, 485, 254
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION |
WS_SYSMENU
CAPTION "List View Window"
FONT 8, "MS Shell Dlg"
BEGIN
CONTROL "", IDC_LIST1, WC_LISTVIEW, WS_TABSTOP | WS_BORDER |
LVS_ALIGNLEFT | LVS_REPORT, 4294967294, 4294967295, 489, 230
END
[/code]

thanks
David Lowndes
2010-02-16 08:03:29 UTC
Permalink
Post by Larry
I am dealing with dialog window created usign ResEdit as a resource
editor. Now, I'd need to make a window resizable and to have all the child
controls in it resize themselves according to the dialog size. Can iy
actually be done?
You can change the dialog's frame style to make it resizable, but the
resizing and moving of the controls has to be done programmatically.
If you search around you may find some examples of resizable dialogs
on sites like codeproject & codeguru.

Dave

Loading...