• Advertisement
Sign in to follow this  

Adding dialog controls "on the fly"

This topic is 3630 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! I'm working in a 3ds Max exporter, the export process works fine and now I'm trying to make a cool GUI... I have a dialog with a rollup, some spinners, edit boxes, etc. I'd like to add the chance to add controls "on the fly" but I don't know how to do it... any idea or example? Thanks a lot!

Share this post


Link to post
Share on other sites
Advertisement
I'm assuming you're using Win32 here...if you are you can add controls to a dialog by creating new controls as children of the dialog window. This is done by calling CreateWindowEx and specifying the name of the window class that corresponds to the control you want, along with some style settings as well as size and position. The MSDN documentation on controls will tell you the names of the window classes and also what sorts of styles you can use.

Share this post


Link to post
Share on other sites
You're right, I forgot to tell I was using Win32...

I'll take a look at MSDN help and I'll tell you something.

Thank you very much!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement