Archived

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

Accessing class-properties from a DlgProc

This topic is 5378 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
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