MFC component added to a Dialog Box on the fly

Complete

OSNN Addict
#1
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

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,969
Messages
673,295
Members
89,017
Latest member
Poseeut