Jump to content
  • Advertisement


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

Last Attacker


This topic is 6169 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 WAS creating a dialog-base program to show colors in a picture box (as a test app.). (You know, to change the picture-box''s back-color to a user-defined color). I tried almost anything. I was using MFC''s dialog-app. project. Could someone please tell me how to use a control''s members (like VB where you could coded ''text1.text="Hallo world!"'' (like the ".text" part).) I would really appreciate it! Thanks! ----------=Last Attacker=---------- ICQ: 120585863 E-mail: laextr@icqmail.com

Share this post

Link to post
Share on other sites
Yo dude!

Mmh, I''m a litle confused but I''ll try to help anyways. Do you want to change the text of an edit box or something or the "text1.text" example was related to the picture box color?
I don''t know how to change the color of a picture box but you could try with SetBitmap() (function of CStatic, class of the picture box).

To access the control members in a dialog you can have a "linked" control or variable as a member variable of you dialog (go to class wizard -> Member Variables).

If this didn''t help let me know, I''ll try to be more specific.
You should be too. =)

See ya ''round.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!