In search of a MFC compatible Form Editor component to embed In search of a MFC compatible Form Editor component to embed in my MFC application.

Posted on 2007-10-11
Last Modified: 2013-12-14
I have a MFC application that I maintain and finally got it working in VS2005. That APP requires a little form editor, like the one found in Visual C, Basic and many other IDE's. Is there any component (mfc class, or active X or library) that I could use, and maybe expand/modify to suite my needs? Thanks.
Question by:schafhauser
    LVL 86

    Expert Comment

    Are you thinking along the lines of ("Double Subclassing (Runtime Form Editor)")?

    Author Comment

    No, not really. I don't need to modify the application it self forms/dialogs. I need something more "independent" if you will  that is a fully dialog editor, load and save user made dialogs, format doesn't matter if I can mod to generate/load my own. I have to implement a minimal IDE inside a terminal emulator written with MFC for a special RTOS embedded system, which has a programming language that supports  remote/distributed GUI, but is way to painful writing the code by hand. So a "dialog editor" would give it a lot of easiness at development cycle.


    Author Comment

    That can't be an accepted solution. Why was this close!?
    LVL 49

    Accepted Solution

    Years ago the Windows Platform SDK used to come with an application named DLGEDIT.Exe.  You can still download that from Microsoft if you want to see what it looks like:

        Use Dlgedit.exe to Edit Platform Builder Dialog Box Templates

    It dates back to Win 3.1 -- it is a visual, interactive app that generates the .RC (text) file that the resource compiler uses to ultimately create the binary DLG resources that Windows interprets when it draws a dialog box.  It was replaced by the built-in resource editor in the IDE.

    The source code for it was available in the Platform SDK.  It seems that Microsoft no longer distributes that src code, but I was able to locate a site that still has a copy:

    At best, that could be used as raw material to create your own such editor.  
    The way I'd do it is get rid of everything but the very basics -- the interactive parts that allow users to add controls and re-size and move them around.  Then I'd redo the output logic so that it used my own simplified format.

    -- Dan
    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
    Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project ( automates most of the tasks discussed in this article. You can even fin…
    The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
    The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now