Click here to Skip to main content
15,892,809 members
Articles / Desktop Programming / MFC

Brainchild, A syntax coloring edit control

Rate me:
Please Sign up or sign in to vote.
4.85/5 (64 votes)
16 Jun 2005CPOL5 min read 709.1K   26.8K   263  
Syntax coloring, multi-level undo/redo editor control.
========================================================================
    ACTIVEX CONTROL DLL : Brainchild Project Overview
========================================================================

ControlWizard has created this project for your Brainchild ActiveX Control
DLL, which contains 1 control.

This skeleton project not only demonstrates the basics of writing an
ActiveX Control, but is also a starting point for writing the specific
features of your control.

This file contains a summary of what you will find in each of the files
that make up your Brainchild ActiveX Control DLL.

Brainchild.vcproj
    This is the main project file for VC++ projects generated using an 
    Application Wizard. It contains information about the version of 
    Visual C++ that generated the file, and information about the platforms,
    configurations, and project features selected with the Application Wizard.

Brainchild.h
    This is the main include file for the ActiveX Control DLL.  It
    includes other project-specific includes such as resource.h.

Brainchild.cpp
    This is the main source file that contains code for DLL initialization,
    termination and other bookkeeping.

Brainchild.rc
    This is a listing of the Microsoft Windows resources that the project
    uses.  This file can be directly edited with the Visual C++ resource
    editor.

Brainchild.def
    This file contains information about the ActiveX Control DLL that
    must be provided to run with Microsoft Windows.

Brainchild.idl
    This file contains the Object Description Language source code for the
    type library of your control.

/////////////////////////////////////////////////////////////////////////////
CBrainchildCtrl control:

BrainchildCtrl.h
    This file contains the declaration of the CBrainchildCtrl C++ class.

BrainchildCtrl.cpp
    This file contains the implementation of the CBrainchildCtrl C++ class.

BrainchildPropPage.h
    This file contains the declaration of the CBrainchildPropPage C++ class.

BrainchildPropPage.cpp
    This file contains the implementation of the CBrainchildPropPage C++ class.

CBrainchildCtrl.bmp
    This file contains a bitmap that a container will use to represent the
    CBrainchildCtrl control when it appears on a tool palette.  This bitmap
    is included by the main resource file Brainchild.rc.

/////////////////////////////////////////////////////////////////////////////
Other standard files:

stdafx.h, stdafx.cpp
    These files are used to build a precompiled header (PCH) file
    named Brainchild.pch and a precompiled types (PCT) file named stdafx.obj.

resource.h
    This is the standard header file, which defines new resource IDs.
    The Visual C++ resource editor reads and updates this file.

/////////////////////////////////////////////////////////////////////////////
Other notes:

ControlWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.

/////////////////////////////////////////////////////////////////////////////

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Netherlands Netherlands
I have been programming for a hobby since 1985. I have started programming on the C= 64. After that I migrated to the C= Amiga which I traded in for a PC back in 1997 I believe. Back in 2000 I decided to lose a hobby and start developing software for a living.

Currently I am working mainly in developing software for building security and access control systems.

Comments and Discussions