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

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
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.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back