Jump to content
  • Advertisement

Archived

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

Prozak

VC++ MFC & TextBoxes

This topic is 6245 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 all, Does anyone out there, using (or not) MFC, know how to "draw" and use a "TextBox". In VB6 its sooooo easy, in VC++, its soooo hard.... Thanx all... Hugo Ferreira lotsjunk@hotmail.com http://unitek3000.tripod.com

Share this post


Link to post
Share on other sites
Advertisement
*Drawing* is usually done in your view class, using the GDI-functionality encapsulated in the Device Context passed to your OnDraw function. If you''re still with me, you know enough about MFC and the Document/View architecture. If not, you really should get a book about MFC, because it''s not all that easy to get to grips with.

Using textboxes is terribly easy (in my opinion, but I''ve been using MFC for 4 years or more). You add them to your dialog-box template in the resource editor, and interface with them either through the DDX mechanism (there are members for this in your dialog box''s class), or by adding an EditControl member to the dialog class and doing everything yourself. If you''re using a form-based application, it should be similar, though I''ve never worked with forms in MFC.


People might not remember what you said, or what you did, but they will always remember how you made them feel.
Mad Keith the V.

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!