Click here to Skip to main content
15,891,607 members
Articles / Desktop Programming / MFC

CodePlotter 1.6 - Add and edit diagrams in your code with this 'Visio-like' tool

Rate me:
Please Sign up or sign in to vote.
4.91/5 (160 votes)
27 Sep 200310 min read 365K   3.8K   171  
A Visual Studio addin for creating and editing ASCII diagrams in source files
// maskedit.cpp : implementation file
//

#include "stdafx.h"
#include "maskedit.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMaskEdit

CMaskEdit::CMaskEdit(LPCTSTR szMask, BOOL bExclude) : m_sMask(szMask), m_bExclude(bExclude)
{
}

CMaskEdit::~CMaskEdit()
{
}


BEGIN_MESSAGE_MAP(CMaskEdit, CEdit)
	//{{AFX_MSG_MAP(CMaskEdit)
	ON_WM_CHAR()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMaskEdit message handlers

void CMaskEdit::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags) 
{
	if (m_bExclude && m_sMask.Find(nChar) != -1)
		return;

	else if (!m_bExclude && m_sMask.Find(nChar) == -1)
		return;

	CEdit::OnChar(nChar, nRepCnt, nFlags);
}

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer Maptek
Australia Australia
.dan.g. is a naturalised Australian and has been developing commercial windows software since 1998.

Comments and Discussions