Embed dialog boxes into the window
| Rowan836 (114) |
|
Simple question. How do I (if possible) make a dialog box part of window instead of a a window of it's own?
Thanks,
Rowan.
|
|
|
| webJose (2947) |
|
|
Use SetParent() to set the new parent window and also set the WS_CHILD style bit because SetParent() won't do it.
|
|
|
| Rowan836 (114) |
|
|
do I put SetParent in WM_INITDIALOG?
|
|
|
| webJose (2947) |
|
|
You can use SetParent() at any time as long as you have a valid window handle.
|
|
|