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 5746 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!