155
|
How can I add a sensitive context menu

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddKeyword(L"<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",vtMissing);
spEdit1->Refresh();
spEdit1->GetContext(vtMissing)->Add(L"class",vtMissing,vtMissing,vtMissing);
|
154
|
Can I use wild characters to define keys in your control

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddWild(L"<fgcolor=808080>(*)</fgcolor>");
spEdit1->Refresh();
|
153
|
Can I use wild characters to define keys in your control

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddWild(L"_HANDLER<fgcolor=FF0000>(*)</fgcolor>");
spEdit1->Refresh();
|
152
|
How can I remove or delete all expressions

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddExpression(L"(",L"<b><fgcolor=FF0000> </fgcolor></b>",L")",VARIANT_FALSE,vtMissing);
spEdit1->ClearExpressions();
spEdit1->Refresh();
|
151
|
How can I remove or delete an expression

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddExpression(L"(",L"<b><fgcolor=FF0000> </fgcolor></b>",L")",VARIANT_FALSE,vtMissing);
spEdit1->DeleteExpression(L"(");
spEdit1->Refresh();
|
150
|
How can I add an expression

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddExpression(L"(",L"<b><fgcolor=FF0000> </fgcolor></b>",L")",VARIANT_FALSE,vtMissing);
spEdit1->Refresh();
|
149
|
How can I add an expression on multiple lines

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddExpression(L"<fgcolor=800000><b>BEGIN_MSG_MAP</b></fgcolor>",L"<b><fgcolor=FF0000> </fgcolor></b>",L"<fgcolor=800000><b>END_MSG_MAP</b></fgcolor>",VARIANT_TRUE,vtMissing);
spEdit1->Refresh();
|
148
|
How can I remove or delete all keywords
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddKeyword(L"<b><fgcolor=FF0000>class</fgcolor></b>",vtMissing,vtMissing,vtMissing);
spEdit1->ClearKeywords();
spEdit1->Refresh();
|
147
|
How can I remove or delete keyword
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddKeyword(L"<b><fgcolor=FF0000>class</fgcolor></b>",vtMissing,vtMissing,vtMissing);
spEdit1->DeleteKeyword(L"class");
spEdit1->Refresh();
|
146
|
How do I add a keyword that's not case sensitive

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddKeyword(L"<b><fgcolor=FF0000>class</fgcolor></b>","","",long(2));
spEdit1->Refresh();
spEdit1->InsertText(L"ClasS\\r\\n",long(1));
spEdit1->InsertText(L"CLASS\\r\\n",long(1));
|
145
|
How do I add a keyword that's not case sensitive

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddKeyword(L"<fgcolor=FF0000>class</fgcolor>","","",long(1));
spEdit1->Refresh();
spEdit1->InsertText(L"ClasS\\r\\n",long(1));
spEdit1->InsertText(L"CLASS\\r\\n",long(1));
|
144
|
How can I assign a tooltip to a keyword

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddKeyword(L"<fgcolor=FF0000>class</fgcolor>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",vtMissing);
spEdit1->Refresh();
|
143
|
How do I add a keyword

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddKeyword(L"<fgcolor=FF0000>class</fgcolor>",vtMissing,vtMissing,vtMissing);
spEdit1->Refresh();
|
142
|
How do I add a keyword

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->AddKeyword(L"<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",vtMissing);
spEdit1->Refresh();
|
141
|
How can I display a tooltip as soon as the user types a keyword

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutToolTipDelay(1);
spEdit1->PutToolTipOnTyping(VARIANT_TRUE);
spEdit1->AddKeyword(L"<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit",vtMissing);
spEdit1->Refresh();
|
140
|
How do I change the color for a locked or a read only line

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutForeColorLockedLine(RGB(0,0,0));
spEdit1->PutBackColorLockedLine(RGB(255,0,0));
spEdit1->PutLockedLine(1,VARIANT_TRUE);
|
139
|
How do I lock or make read only a line

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutLockedLine(1,VARIANT_TRUE);
|
138
|
How do I start overtyping

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutOvertype(VARIANT_TRUE);
|
137
|
How do I get the selection

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->GetSelection(sy,sx,ey,ex);
OutputDebugStringW( L"sy" );
OutputDebugStringW( L"sx" );
OutputDebugStringW( L"ey" );
OutputDebugStringW( L"ex" );
|
136
|
How do I select multiple lines

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->SetSelection(long(0),long(0),long(10),long(0));
spEdit1->PutHideSelection(VARIANT_FALSE);
|
135
|
How can I change the shape of the cursor when it hovers the selected text

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCursor(EXEDITLib::exSelectedText,"exHelp");
spEdit1->PutSelLength(10);
spEdit1->PutHideSelection(VARIANT_FALSE);
|
134
|
How can I change the shape of the cursor when it hovers the incremental search area

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCursor(EXEDITLib::exIncrementalSearchArea,"exHelp");
|
133
|
How can I change the shape of the cursor when it hovers the line numbers area

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCursor(EXEDITLib::exLineNumberArea,"exHelp");
spEdit1->PutLineNumberWidth(16);
|
132
|
How can I change the shape of the cursor when it hovers the bookmark area

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCursor(EXEDITLib::exBookmarkArea,"exHelp");
spEdit1->PutBookmarkWidth(16);
|
131
|
How can I change the shape of the cursor when it hovers the edit
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCursor(EXEDITLib::exEditArea,"exHelp");
|
130
|
How can I enable or disable OLE drag and drop operations
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutOLEDropMode(EXEDITLib::exOLEDropAutomatic);
|
129
|
How can I change the descriptions for items in the control's context menu

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCaption(EXEDITLib::exContextMenu,EXEDITLib::exContextUndo,L"U N D O");
spEdit1->PutCaption(EXEDITLib::exContextMenu,EXEDITLib::exContextRedo,L"R E D O");
spEdit1->PutCaption(EXEDITLib::exContextMenu,EXEDITLib::exContextCut,L"C U T");
spEdit1->PutCaption(EXEDITLib::exContextMenu,EXEDITLib::exContextCopy,L"C O P Y");
spEdit1->PutCaption(EXEDITLib::exContextMenu,EXEDITLib::exContextPaste,L"P A S T E");
spEdit1->PutCaption(EXEDITLib::exContextMenu,EXEDITLib::exContextDelete,L"D E L");
spEdit1->PutCaption(EXEDITLib::exContextMenu,EXEDITLib::exContextSelectAll,L"A L L ");
|
128
|
How can I change the descriptions for fields in the Replace dialog

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exFieldFindWhat,L"What");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exFieldReplaceWith,L"Replace");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exFieldWordOnly,L"Word");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exFieldMatchCase,L"Case");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exFieldFindNext,L"Dir");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exFieldSelection,L"Sel");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exFieldWholeFile,L"File");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exFieldReplace,L"Rep");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exFieldReplaceAll,L"All");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exFieldCancel,L"Abandon");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exErrorTitle,L"Title");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exErrorFindNext,L"Failed!");
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exErrorFindNext,L"Done");
|
127
|
How can I change the descriptions for fields in the Find dialog

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exFieldFindWhat,L"What");
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exFieldWordOnly,L"Word");
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exFieldMatchCase,L"Case");
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exFieldFindNext,L"Dir");
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exFieldSelection,L"U");
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exFieldWholeFile,L"D");
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exFieldFindNext,L"Next");
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exFieldReplace,L"All");
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exFieldCancel,L"Abandon");
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exErrorFindNext,L"Failed!");
|
126
|
How can I change the caption for the Replace dialog

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCaption(EXEDITLib::exReplaceDialog,EXEDITLib::exCaption,L"Search and Replace");
|
125
|
How can I change the caption for the Find dialog

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutCaption(EXEDITLib::exFindDialog,EXEDITLib::exCaption,L"Search");
|
124
|
How can I move the cursor when user invokes the control's context menu

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutRClick(VARIANT_TRUE);
|
123
|
How can I disable indenting the selected text when the user presses the TAB key
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutIndentOnTab(VARIANT_FALSE);
|
122
|
How can I indent a line

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutLineNumberWidth(18);
spEdit1->PutHideSelection(VARIANT_FALSE);
spEdit1->SelectLine(3);
spEdit1->IndentSel(VARIANT_TRUE);
|
121
|
How can I show or hide the control's splitter

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutAllowSplitter(EXEDITLib::exBothSplitter);
spEdit1->PutSplitPaneHeight(128);
spEdit1->PutSplitPaneWidth(128);
|
120
|
How can I select a line

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutLineNumberWidth(18);
spEdit1->PutHideSelection(VARIANT_FALSE);
spEdit1->SelectLine(3);
|
119
|
How do I change the font to display the line numbers

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->GetLineNumberFont()->PutName(L"Tahoma");
spEdit1->PutLineNumberWidth(18);
|
118
|
How can I change the height of the line

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->GetFont()->PutSize(_variant_t(long(32)));
spEdit1->PutDrawGridLines(VARIANT_TRUE);
spEdit1->Refresh();
|
117
|
How can I show or hide the grid lines

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutDrawGridLines(VARIANT_TRUE);
|
116
|
How do I highlight the position of multiple lines expression on the vertical scroll bar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutAllowMark(VARIANT_TRUE);
spEdit1->PutMarkContinueBlocks(VARIANT_TRUE);
spEdit1->AddKeyword(L"<b>CAxWnd",vtMissing,vtMissing,vtMissing);
spEdit1->AddExpression(L"<fgcolor=800000><b>BEGIN_MSG_MAP</b></fgcolor>",L"<b><fgcolor=FF0000> </fgcolor></b>",L"<fgcolor=800000><b>END_MSG_MAP</b></fgcolor>",VARIANT_TRUE,vtMissing);
spEdit1->PutMarkColor(L"BEGIN_MSG_MAP",RGB(255,0,0));
spEdit1->PutMarkColor(L"END_MSG_MAP",RGB(128,0,0));
spEdit1->PutMarkColor(L"CAxWnd",RGB(0,0,0));
spEdit1->Refresh();
|
115
|
How do I ignore \" in a string

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->InsertText(L"\"just a string \\\"expression\"\\r\\n",long(1));
spEdit1->AddExpression(L"<fgcolor=800000><b>\"</b></fgcolor>",L"<b><fgcolor=FF0000> </fgcolor></b>",L"<fgcolor=800000><b>\"</b></fgcolor>",VARIANT_TRUE,vtMissing);
spEdit1->PutIgnorePrefixInExpression(L"\"",L"\\");
spEdit1->Refresh();
|
114
|
How can I change the color for the line number's border

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutLineNumberBorderColor(RGB(255,0,0));
spEdit1->PutLineNumberWidth(18);
|
113
|
How can I change the color for the bookmark's border

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutBookmarkBorderColor(RGB(255,0,0));
spEdit1->PutBookmarkWidth(18);
|
112
|
Can I display a custom icon or picture for bookmarks

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spEdit1->PutBookmarkImage(1);
spEdit1->PutBookmark(2,VARIANT_TRUE);
spEdit1->PutBookmark(4,VARIANT_TRUE);
spEdit1->PutBookmarkWidth(18);
|
111
|
Can I display a custom icon or picture in the bookmark area

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spEdit1->PutBookmarkImageLine(2,1);
spEdit1->PutBookmark(4,VARIANT_TRUE);
spEdit1->PutBookmarkWidth(18);
|
110
|
How do I remove the line's background color
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutBackColorLine(1,RGB(255,0,0));
spEdit1->ClearBackColorLine(1);
|
109
|
How do I change the foreground color for a line

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutForeColorLine(1,RGB(255,0,0));
|
108
|
How do I change the background color for a line

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutBackColorLine(1,RGB(255,0,0));
|
107
|
How can I add my own items in the control's context menu

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutContextMenuItems(L"New Item");
|
106
|
How do I ensure that a specified line is visible

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->EnsureVisibleLine(spEdit1->GetCount());
|
105
|
How can I programmatically perform a REDO operation
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->Redo();
|
104
|
How can I programmatically perform an UNDO operation
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->Undo();
|
103
|
How do I get the bookmarks as a list

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutBookmark(2,VARIANT_TRUE);
spEdit1->PutBookmark(4,VARIANT_TRUE);
spEdit1->PutBookmarkWidth(16);
_variant_t var_BookmarksList = spEdit1->GetBookmarksList();
|
102
|
How can I move to the previous bookmark

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutBookmark(2,VARIANT_TRUE);
spEdit1->PutBookmark(4,VARIANT_TRUE);
spEdit1->PutBookmarkWidth(16);
spEdit1->PrevBookmark();
|
101
|
How can I move to the next bookmark

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library'
#import <ExEdit.dll>
using namespace EXEDITLib;
*/
EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown();
spEdit1->PutBookmark(2,VARIANT_TRUE);
spEdit1->PutBookmark(4,VARIANT_TRUE);
spEdit1->PutBookmarkWidth(16);
spEdit1->NextBookmark();
|