I would to add controls to a running dialog, I know how it can be done by creating a window, but can this be done using the resource?
thanks for the help.
Printable View
I would to add controls to a running dialog, I know how it can be done by creating a window, but can this be done using the resource?
thanks for the help.
You could always create all the controls you wish and simply render them visible or otherwise during the progress of your dialog.
yeah but how can a style be applied when the window(control) already exists?
And how can I resize a dialog box after it was created?
To change window styles use SetWindowLong with the GWL_STYLE flag. You may have to call SetWindowPos immediately after to ensure that the new styles are properly drawn.
To resize your dialog programmatically use SetWindowPos or MoveWindow. To ensure a user can manually resize the dialog you can give it the WS_THICKFRAME style.
While we're on the subject. Is there a way to change values of buttons and static controls, without destroying and recreating them?
SetWindowText ?Quote:
is there a way to change values of buttons and static controls, without destroying and recreating them?
Thank you.