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.
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.
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe
http://www.Bloodware.net - Developing free software for the community.
You could always create all the controls you wish and simply render them visible or otherwise during the progress of your dialog.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
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?
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe
http://www.Bloodware.net - Developing free software for the community.
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.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
While we're on the subject. Is there a way to change values of buttons and static controls, without destroying and recreating them?
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe
http://www.Bloodware.net - Developing free software for the community.
SetWindowText ?is there a way to change values of buttons and static controls, without destroying and recreating them?
Thank you.
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe
http://www.Bloodware.net - Developing free software for the community.