×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Adding Controls to a dialog

Adding Controls to a dialog

Adding Controls to a dialog

(OP)
I am trying to improve my C skills by programming an example that I obtained from the internet.  I have entered the code for a single document window and a dialog box.  The dialog box contains a EditBox and A button, I want to write code to respond to clicking the button.  I am trying to learn how these things work together without using the wizards provided by Microsoft, I think I will learn better that way.  I need to know how to implement the message map, I have messagge mapping for the document window and it function, I have placed the mapping for the buttion in the class for the document window, but it doesn't work.  I think I need to add a class for the dialog box, then put all message mapping for the dialog in that class.  My problem is I am confused on how to code the class.  Do I create a separate class? (Say Dialog.h) or what.  I would appreciate any help I can get.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources