Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Brainchild, A syntax coloring edit control

, 16 Jun 2005 CPOL
Syntax coloring, multi-level undo/redo editor control.
bcc_cpl.zip
BCC
ABOUT.ICO
bcc.def
BCC.dsp
BCC.DSW
CLIST.BMP
datetime.ico
EMAIL.ICO
FILES.ICO
GENERAL.ICO
INDENTIO.ICO
keyboard.ico
KEYWORDS.BMP
main.bmp
MAIN.ICO
PRINTER.ICO
Release
Brainchild.lib
SYNTAX.ICO
toolbar.bmp
TREE.BMP
WWW.ICO
bcdemo.zip
BCDemo
bcdemo.exe.manifest
bcdemo.ico
BITMAP1.BMP
CLOCK.ICO
PIN.BMP
Release
Brainchild.lib
toolbar.bmp
brainchild_bin.zip
BCC.cpl
BCDemo.exe
Brainchild.ocx
Brainchild.dll
brainchild_dll.zip
HTMLHelp
Programmer
pattern.bmp
drag_sel.cur
cursor1.cur
cur00001.cur
brainchild.def
Defaults
C#.bcp
c++.bcp
DEF.BCP
DEFAULT.BCP
HTML.BCP
INI.BCP
innosetup.bcp
JAVA.BCP
JSCRIPT.BCP
PARSER.BCP
RESOURCE.BCP
T-SQL.bcp
VBSCRIPT.BCP
brainchild_help.zip
Brainchild.chm
brainchild_ocx.zip
Brainchild
Brainchild.def
Brainchild.dll
BrainchildCtrl.bmp
Release
Brainchild.dll
Brainchild.lib
brainchild_wtl.zip
Destination
BCC.cpl
Brainchild.dll
BrainChildEdit.exe
res
BrainChildEdit.exe.manifest
BrainChildEdit.ico
c++.bcp
JSCRIPT.BCP
toolbar.bmp
VBSCRIPT.BCP
Brainchild.lib
BrainChildEdit.dsp
BrainChildEdit.dsw
//
//	kwedit.h
//
//	(C) Copyright 2000-2002 by Jan van den Baard.
//	    All Rights Reserved.
//
//	Keyword list edit dialog.
//

// Keyword edit dialog class.
class KWEdit : public ClsSizeDialog
{
	_NO_COPY( KWEdit );
public:
	// Construction/destruction.
	KWEdit();
	virtual ~KWEdit();
	
	// Implementation.
	void Edit( ClsWindow& Parent, LPKEYWORDS pKW, KeywordEdit *pKWE );
	
protected:
	// Overidables.
	virtual LRESULT OnInitDialog( LPPROPSHEETPAGE pPsp );
	virtual LRESULT OnCommand( UINT nNotifyCode, UINT nCtrlID, HWND hWndCtrl );
	virtual LRESULT OnClose() { EndDialog( FALSE ); return 0;}
	virtual LRESULT OnSize( UINT nSizeType, int nWidth, int nHeight );
	virtual LRESULT WindowProc( UINT uMsg, WPARAM wParam, LPARAM lParam );
	
	// Helpers.
	BOOL SaveKeywords();
	
	// Data
	ClsLayoutEngine m_Master, m_Buttons;
	ClsSize		m_MinSize;
	ClsLStatic	m_Static;
	ClsLPushButton  m_Ok, m_Cancel;
	ClsBrainchild	m_Edit;
	TCHAR		m_szOutput[ MAX_PATH ];
	LPKEYWORDS	m_pKW;
	COLORREF	m_crBkgnd;
	HICON		m_hIcon;
};

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)

Share

About the Author

Jan van den Baard
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.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.1411028.1 | Last Updated 17 Jun 2005
Article Copyright 2002 by Jan van den Baard
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid