• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

Configurable Child Window or Dialog Box

I want to do a configurable child window or a dialog box whereby I can add in additional buttons or any other control when a request is put up. How can I do this? Please guide me through.

If examples or sample code is given additional points shall be given.
1 Solution
all you have to do is:
1) declare CWnd in your class
CWnd* newWnd;

2) when the user wants to add a new controll lets say to a dialog, u have to do the follwoing:

if its button:
newWnd=new CButoon();

you have to do it through switch case


same thing for the
KeithTeoAuthor Commented:
Thanks. That's what I want. Will there be any problem packaging this into an OCX so that I can reuse this thing? Hope you can share your view on this.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now