An embedded Windows GUI application (plug-in and play GUI)

Environment: VC5.0/4.0, Win95/98, NT4.0

This is a Windows GUI application which has the ability to embed different functionality sub-module and manage them. The main module and sub-modules commonly are Document-View window frame.

This design is similar to COM mechanism, but directly and simply use DLL to realize the sub-module. The method to put Document-View child window module to DLL can refer JS Byju's article Separating the views of an MDI application into different DLLs

First, design a set of base-class with standard inferface functions, they are export base classes CStandardDoc, CChildFrame, CStandardView, and export functions InitTemplate, GetModuleData. All embeded sub-modules' windows classes and main module windows classes are derived from these base class. At run time, all sub-modules' windows' View share the main module's Document object, so the control and data exchange between sub-module and main module or sub-module and sub-module are implemented by the Document in main module and Views in sub-module. The CStandardDoc has the member function GetMsgFromView to get information from sub-module View and use UpdateAllView to broadcast the message to all View. The CStandardView has the member function GetMsgFromDocument and OnUpdate for sub-modules' View to receive message from the Document of main module.

This demo is a multimedia type Windows application, one main module, a bitmap show sub-module, a simple math game module and a 3D animation mdoule. The sub-modules are independent, they can be pluged in main module daymaniclly. The config.exe in the demo allow the user decide which sub-module is embeded to main module, which one not.

Download demo project - 74 KB

Download source - 123 KB

Date Last Updated: April 18, 1999



Comments

  • Excellent!!

    Posted by Legacy on 07/15/2002 12:00am

    Originally posted by: Byunchul Yoon

    Excellent. it's greate job.

    Reply
  • Please tell me the step by step procedure to run ur programm

    Posted by Legacy on 01/08/2002 12:00am

    Originally posted by: Chandru

    Please tell me the step by step procedure to run ur programm

    Reply
  • Can you tell me where to download your Voice Talk

    Posted by Legacy on 02/16/2001 12:00am

    Originally posted by: Chung

    Can you tell me where to download your Voice Talk , Thank you very much.

    Reply
  • Error! File not found.

    Posted by Legacy on 09/26/2000 12:00am

    Originally posted by: young bok, kim

    Good, I love this and enjoy this code.
    Thank you.

    But, File not MFC42D.DLL found.

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: August 20, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT When you look at natural user interfaces as a developer, it isn't just fun and games. There are some very serious, real-world usage models of how things can help make the world a better place – things like Intel® RealSense™ technology. Check out this upcoming eSeminar and join the panel of experts, both from inside and outside of Intel, as they discuss how natural user interfaces will likely be getting adopted in a wide variety …

  • Live Event Date: August 14, 2014 @ 2:00 p.m. ET / 11:00 a.m. PT Data protection has long been considered "overhead" by many organizations in the past, many chalking it up to an insurance policy or an extended warranty you may never use. The realities of today makes data protection a must-have, as we live in a data-driven society -- the digital assets we create, share, and collaborate with others on must be managed and protected for many purposes. Check out this upcoming eSeminar and join Seagate Cloud …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds