MFC component added to a Dialog Box on the fly

Complete

OSNN Addict
Joined
25 Aug 2005
Messages
94
If you are familiar with Visual C++ and MFC (Microsoft Foundatioin Class) library, you know how you can create a User Interface dialog by creating a dialog box during development of the software in the .RC file.

I am going to be trying to do something a little unusual soon. I want to have an MFC dialog box presented to the user but according to how many nodes exist in a link list (build before the dialog box is created and also while the dialog box is visible), any number of elements can be presented on the dialog box.

This requires some thinking. In MFC, dialog boxes are created by the programmer and its details are stored in a resource file (called .RC file) before the code is created.

On the other hand, WIN32 type programs have the ability to have dialog boxes available to the programmer at a moments whim. and the shape and content of the dialog box can be determined at run time.

I want to merge these two abilities so that I have a "hard coded" dialog box defined in the .rc file and yet at run time, I can add something to this dialog box.

I can see where this is going to be a challenge in the code as well as in the presentation of the dialog box.
 

Members online

No members online now.

Latest profile posts

hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.
Terrahertz wrote on Electronic Punk's profile.
Yo fellas!
Electronic Punk wrote on Sazar's profile.
Where are you buddy?
Perris Calderon wrote on Electronic Punk's profile.
Hey EP! All good with me, applying for Microsoft MVP right now, should have done this a while ago.

Notifications don't work, I only found your response by coming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier!

Forum statistics

Threads
61,999
Messages
673,425
Members
5,593
Latest member
moussa021