- Make sure that install dir\SOURCE directory is added to INCLUDE path and Bin* is added to LIBRARY path.
- Add the following include to the stdafx.h file:
#include ""BCGCBProInc.h"
If you want to take advantage of CBCGPEditView, just create a standard MFC project and replace CView with CBCGPEditView
If you want to use CBCGPEditView with CBCGPEditCtrl-derived class you need to derive a class from CBCGPEditView and override CBCGPEditView::CreateEdit in the following way:
{
m_pEdit = new CCustomEditCtrl;
return m_pEdit;
}
Use
CBCGPEditView::GetEditCtrl to obtain the pointer to edit control
If you want to use CBCGPEditCtrl class in a dialog just embed a CBCGPEditCtrl object in the dialog object and call CBCGPEditCtrl::Create in OnInitDialog.
For advanced technique, please, see the following examples located in install dir\Samples directory:
- SimpleEditor - illustrates usage of CBCGPEditView in SDI application. Demonstrates bookmarks.
- MDIEditor - illustrates usage of CBCGPEditView in MDI application. Employs markers and IntelliSense.
- ChatEditor - illustrates usage of CBCGPEditCtrl in dialog. Demonstrates symbol support in a chat client.
- Markers - a WinDiff-like application illustrates advanced usage of markers.