From: Larry on
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

From: David Lowndes on
> 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
 | 
Pages: 1
Prev: About main()
Next: How to make a Dialog resizable