Click here to Skip to main content
15,887,683 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 705.8K   26.8K   263  
Syntax coloring, multi-level undo/redo editor control.
//
//	brainchildproppage.cpp
//
//	(C) Copyright 2004 by Jan van den Baard.
//	    All Rights Reserved.
//
// Implementation of the CBrainchildPropPage property page class.

#include "stdafx.h"
#include "Brainchild.h"
#include "BrainchildPropPage.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif

IMPLEMENT_DYNCREATE(CBrainchildPropPage, COlePropertyPage)

// Message map
BEGIN_MESSAGE_MAP(CBrainchildPropPage, COlePropertyPage)
END_MESSAGE_MAP()

// Initialize class factory and guid
IMPLEMENT_OLECREATE_EX(CBrainchildPropPage, "BRAINCHILD.BrainchildPropPage.1",
	0x3289b28f, 0x6e84, 0x4415, 0x8a, 0xb4, 0x63, 0xc5, 0xdc, 0x38, 0x2e, 0xcb)

// CBrainchildPropPage::CBrainchildPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CBrainchildPropPage
BOOL CBrainchildPropPage::CBrainchildPropPageFactory::UpdateRegistry( BOOL bRegister )
{
	if ( bRegister )
		return AfxOleRegisterPropertyPageClass( AfxGetInstanceHandle(),
							m_clsid, IDS_BRAINCHILD_PPG );
	else
		return AfxOleUnregisterClass( m_clsid, NULL );
}

// CBrainchildPropPage::CBrainchildPropPage - Constructor
CBrainchildPropPage::CBrainchildPropPage() :
	COlePropertyPage( IDD, IDS_BRAINCHILD_PPG_CAPTION )
{
}

// CBrainchildPropPage::DoDataExchange - Moves data between page and properties
void CBrainchildPropPage::DoDataExchange( CDataExchange* pDX )
{
	DDP_PostProcessing( pDX );
}

// CBrainchildPropPage message handlers

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