I'm trying to set up my win32 app (C++ straight win32 API, by the way) in a way that when someone selects a menu item/makes a certain choice in a pop-up dialog, the main-window changes, for instance buttons are added and text, etc...
So far my attempts to do this have failed. Things I've tried:
-Using a WS_CHILD dialog that opens up inside my main window that holds all the new controls I want to add.
Failed - not sure why, the PUSHBUTTON I used wasn't clickable and my program kept focus on main window while being unable to click the "X" button there, so I have to close out with Task Manager.
-Using CreateWindow() or CreateWindowEx() to create every control fresh. Seems really ugly, hacky, and difficult. This isn't the only way, I hope?
I've also thought about turning my main window into a dialog box itself. Don't know if this would help or if it would be modular, though.
Are any of these on-track, or should one work and I'm just not implementing it right? I have a feeling if I could get the WS_CHILD dialogs to work, it'd be super-easy to change main-window states because I could just end one dialog and start another...If this is the case, I can post code.
Thanks very much! This is my first venture into Win32 so I'm trying to understand how it all works...after that I think I'll move to a wrapper API like QT or FOX.