Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

mortex

Accessing class-properties from a DlgProc

This topic is 5657 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 use a dialog to set some properties (like width, height, bpp) and I need these properties to be forwarded to a class. now, what would be a clean way to do that? using a global instance? (it seems so ugly..) Thanks. - Morten

Share this post


Link to post
Share on other sites
Advertisement
You could probably do it in a similar way to using WndProc in a class. I think the DialogBoxParam function allows you to pass some initialization data in a long to the DlgProc, you could use that to pass a pointer to the class instance.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!