Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


vc++ dialogs


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 AlexM   Members   -  Reputation: 122

Like
Likes
Like

Posted 09 January 2000 - 10:54 AM

how do i initialize a dialog box i mean to use as modal? "Create" doesn''t seem to work (i need it to load the resource dbox), and msdn doesn''t say anything else. Thanks in advance!

Sponsor:

#2 deadlinegrunt   Members   -  Reputation: 123

Like
Likes
Like

Posted 09 January 2000 - 02:00 PM

Basically what you need to do is instantiate an object from CDialog and then attach your resource dialog to your newly created object. (I assume you are using the resouce editor to make the dialog)

Then after it has been instantiated and resource is attached you would call DoModal() and do your thing what have you. Also I''ll point out this potential pitfall, when you instantiate the dialog, make sure it isn''t from a local function that goes out of scope before you can do anything with it.

BTW, I am assuming this is a dynamic dialog box judging from your post, if not then the same basic rules apply only not.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS