⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scinmfc.htm

📁 一个可以提供语法高亮显示的编辑器
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<A NAME=CScintillamfcView__OnUpdateEditPaste><H1>CScintillamfcView::OnUpdateEditPaste</H1></A>
 <B>void</B> <B>CScintillamfcView</B><B>::OnUpdateEditPaste(</B><B>CCmdUI*</B> <I>pCmdUI</I><B>) </B><P>
menu check handler - check if there is somethiong to paste<P>
Defined in: D:/PROJECTS/GCL/VGCL/SCINTILLAMFC/SCINTILLAMFCVIEW.CPP<P>
<H3>Parameters</H3>
<DL><DT><I>pCmdUI</I>
<DD>menu handle<P>
</DL>
<TABLE>
<TR><TD><B>Return Value</B></TD><TD><B>Description</B></TD></TR><TR><TD>void</TD><TD>not used</TD></TR></TABLE>
<HR>
<A NAME=CScintillamfcView__OnUpdateEditRedo><H1>CScintillamfcView::OnUpdateEditRedo</H1></A>
 <B>void</B> <B>CScintillamfcView</B><B>::OnUpdateEditRedo(</B><B>CCmdUI*</B> <I>pCmdUI</I><B>) </B><P>
menu check handler - check if there is an action to redo<P>
Defined in: D:/PROJECTS/GCL/VGCL/SCINTILLAMFC/SCINTILLAMFCVIEW.CPP<P>
<H3>Parameters</H3>
<DL><DT><I>pCmdUI</I>
<DD>menu handle<P>
</DL>
<TABLE>
<TR><TD><B>Return Value</B></TD><TD><B>Description</B></TD></TR><TR><TD>void</TD><TD>not used</TD></TR></TABLE>
<HR>
<A NAME=CScintillamfcView__OnUpdateEditUndo><H1>CScintillamfcView::OnUpdateEditUndo</H1></A>
 <B>void</B> <B>CScintillamfcView</B><B>::OnUpdateEditUndo(</B><B>CCmdUI*</B> <I>pCmdUI</I><B>) </B><P>
menu check handler - check if there is an action to undo<P>
Defined in: D:/PROJECTS/GCL/VGCL/SCINTILLAMFC/SCINTILLAMFCVIEW.CPP<P>
<H3>Parameters</H3>
<DL><DT><I>pCmdUI</I>
<DD>menu handle<P>
</DL>
<TABLE>
<TR><TD><B>Return Value</B></TD><TD><B>Description</B></TD></TR><TR><TD>void</TD><TD>not used</TD></TR></TABLE>
<HR>
<A NAME=CScintillamfcView__OnUpdateFold><H1>CScintillamfcView::OnUpdateFold</H1></A>
 <B>void</B> <B>CScintillamfcView</B><B>::OnUpdateFold(</B><B>CCmdUI*</B> <I>pCmdUI</I><B>) </B><P>
update folding level<P>
Defined in: D:/PROJECTS/GCL/VGCL/SCINTILLAMFC/SCINTILLAMFCVIEW.CPP<P>
<H3>Parameters</H3>
<DL><DT><I>pCmdUI</I>
<DD>handle of textpane for folding level - see mainfrm.cpp at top<P>
</DL>
<TABLE>
<TR><TD><B>Return Value</B></TD><TD><B>Description</B></TD></TR><TR><TD>void</TD><TD>not used</TD></TR></TABLE>
<HR>
<A NAME=CScintillamfcView__OnUpdateInsert><H1>CScintillamfcView::OnUpdateInsert</H1></A>
 <B>void</B> <B>CScintillamfcView</B><B>::OnUpdateInsert(</B><B>CCmdUI*</B> <I>pCmdUI</I><B>) </B><P>
menu check handler - set indicator for overstrike mode<P>
Defined in: D:/PROJECTS/GCL/VGCL/SCINTILLAMFC/SCINTILLAMFCVIEW.CPP<P>
<H3>Parameters</H3>
<DL><DT><I>pCmdUI</I>
<DD>menu handle<P>
</DL>
<TABLE>
<TR><TD><B>Return Value</B></TD><TD><B>Description</B></TD></TR><TR><TD>void</TD><TD>not used</TD></TR></TABLE>
<HR>
<A NAME=CScintillamfcView__OnUpdateLine><H1>CScintillamfcView::OnUpdateLine</H1></A>
 <B>void</B> <B>CScintillamfcView</B><B>::OnUpdateLine(</B><B>CCmdUI*</B> <I>pCmdUI</I><B>) </B><P>
update line number<P>
Defined in: D:/PROJECTS/GCL/VGCL/SCINTILLAMFC/SCINTILLAMFCVIEW.CPP<P>
<H3>Parameters</H3>
<DL><DT><I>pCmdUI</I>
<DD>handle of textpane for linenumbers - see mainfrm.cpp at top<P>
</DL>
<TABLE>
<TR><TD><B>Return Value</B></TD><TD><B>Description</B></TD></TR><TR><TD>void</TD><TD>not used</TD></TR></TABLE>
<HR>
<A NAME=CScintillamfcView__OnUpdateOptionsAddmarker><H1>CScintillamfcView::OnUpdateOptionsAddmarker</H1></A>
 <B>void</B> <B>CScintillamfcView</B><B>::OnUpdateOptionsAddmarker(</B><B>CCmdUI*</B> <I>pCmdUI</I><B>) </B><P>
menu check handler - disable menu item when there is already a marker at that line<P>
Defined in: D:/PROJECTS/GCL/VGCL/SCINTILLAMFC/SCINTILLAMFCVIEW.CPP<P>
<H3>Parameters</H3>
<DL><DT><I>pCmdUI</I>
<DD>menu handle<P>
</DL>
<TABLE>
<TR><TD><B>Return Value</B></TD><TD><B>Description</B></TD></TR><TR><TD>void</TD><TD>not used</TD></TR></TABLE>
<HR>
<A NAME=CScintillamfcView__OnUpdateOptionsDeletemarker><H1>CScintillamfcView::OnUpdateOptionsDeletemarker</H1></A>
 <B>void</B> <B>CScintillamfcView</B><B>::OnUpdateOptionsDeletemarker(</B><B>CCmdUI*</B> <I>pCmdUI</I><B>) </B><P>
menu check handler - disable menu item when there is no marker at that line<P>
Defined in: D:/PROJECTS/GCL/VGCL/SCINTILLAMFC/SCINTILLAMFCVIEW.CPP<P>
<H3>Parameters</H3>
<DL><DT><I>pCmdUI</I>
<DD>menu handle<P>
</DL>
<TABLE>
<TR><TD><B>Return Value</B></TD><TD><B>Description</B></TD></TR><TR><TD>void</TD><TD>not used</TD></TR></TABLE>
<HR>
<A NAME=CScintillamfcView__OnUpdateOptionsFoldMargin><H1>CScintillamfcView::OnUpdateOptionsFoldMargin</H1></A>
 <B>void</B> <B>CScintillamfcView</B><B>::OnUpdateOptionsFoldMargin(</B><B>CCmdUI*</B> <I>pCmdUI</I><B>) </B><P>
menu check handler - check menu when folding margin is displayed<P>
Defined in: D:/PROJECTS/GCL/VGCL/SCINTILLAMFC/SCINTILLAMFCVIEW.CPP<P>
<H3>Parameters</H3>
<DL><DT><I>pCmdUI</I>
<DD>menu handle<P>
</DL>
<TABLE>
<TR><TD><B>Return Value</B></TD><TD><B>Description</B></TD></TR><TR><TD>void</TD><TD>not used</TD></TR></TABLE>
<HR>
<A NAME=CScintillamfcView__OnUpdateOptionsSelectionMargin><H1>CScintillamfcView::OnUpdateOptionsSelectionMargin</H1></A>
 <B>void</B> <B>CScintillamfcView</B><B>::OnUpdateOptionsSelectionMargin(</B><B>CCmdUI*</B> <I>pCmdUI</I><B>) </B><P>
menu check handler - check menu when selection margin is displayed<P>
Defined in: D:/PROJECTS/GCL/VGCL/SCINTILLAMFC/SCINTILLAMFCVIEW.CPP<P>
<H3>Parameters</H3>
<DL><DT><I>pCmdUI</I>
<DD>menu handle<P>
</DL>
<TABLE>
<TR><TD><B>Return Value</B></TD><TD><B>Description</B></TD></TR><TR><TD>void</TD><TD>not used</TD></TR></TABLE>
<HR>
<A NAME=CScintillamfcView__OnUpdateOptionsViewLinenumbers><H1>CScintillamfcView::OnUpdateOptionsViewLinenumbers</H1></A>
 <B>void</B> <B>CScintillamfcView</B><B>::OnUpdateOptionsViewLinenumbers(</B><B>CCmdUI*</B> <I>pCmdUI</I><B>) </B><P>
menu check handler - check the menu item if line numbers are displayed<P>
Defined in: D:/PROJECTS/GCL/VGCL/SCINTILLAMFC/SCINTILLAMFCVIEW.CPP<P>
<H3>Parameters</H3>
<DL><DT><I>pCmdUI</I>
<DD>menu handle<P>
</DL>
<TABLE>
<TR><TD><B>Return Value</B></TD><TD><B>Description</B></TD></TR><TR><TD>void</TD><TD>not used</TD></TR></TABLE>
<HR>
<A NAME=CScintillamfcView__OnUpdateStyle><H1>CScintillamfcView::OnUpdateStyle</H1></A>
 <B>void</B> <B>CScintillamfcView</B><B>::OnUpdateStyle(</B><B>CCmdUI*</B> <I>pCmdUI</I><B>) </B><P>
update style number<P>
Defined in: D:/PROJECTS/GCL/VGCL/SCINTILLAMFC/SCINTILLAMFCVIEW.CPP<P>
<H3>Parameters</H3>
<DL><DT><I>pCmdUI</I>
<DD>handle of textpane for style number - see mainfrm.cpp at top<P>
</DL>
<TABLE>
<TR><TD><B>Return Value</B></TD><TD><B>Description</B></TD></TR><TR><TD>void</TD><TD>not used</TD></TR></TABLE>
<HR>
<A NAME=CScintillamfcView__PreCreateWindow><H1>CScintillamfcView::PreCreateWindow</H1></A>
 <B>BOOL</B> <B>CScintillamfcView</B><B>::PreCreateWindow(void</B><B>) </B><P>
called before window is created<P>
Defined in: D:/PROJECTS/GCL/VGCL/SCINTILLAMFC/SCINTILLAMFCVIEW.CPP<P>
<TABLE>
<TR><TD><B>Return Value</B></TD><TD><B>Description</B></TD></TR><TR><TD>void</TD><TD>not used</TD></TR></TABLE>
<HR>
<A NAME=CScintillamfcView__Save><H1>CScintillamfcView::Save</H1></A>
 <B>BOOL</B> <B>CScintillamfcView</B><B>::Save(</B><B>LPCSTR</B> <I>szPath</I><B>) </B><P>
menu handler - save current document - let the control do the work<P>
Defined in: D:/PROJECTS/GCL/VGCL/SCINTILLAMFC/SCINTILLAMFCVIEW.CPP<P>
<H3>Parameters</H3>
<DL><DT><I>szPath</I>
<DD>path of document to save to<P>
</DL>
<TABLE>
<TR><TD><B>Return Value</B></TD><TD><B>Description</B></TD></TR><TR><TD>void</TD><TD>not used</TD></TR></TABLE>
<HR>
<A NAME=CScintillamfcView__.7eCScintillamfcView><H1>CScintillamfcView::~CScintillamfcView</H1></A>
<B>CScintillamfcView</B><B>::~CScintillamfcView(void</B><B>) </B><P>
destructor<P>
Defined in: D:/PROJECTS/GCL/VGCL/SCINTILLAMFC/SCINTILLAMFCVIEW.CPP<P>
<TABLE>
<TR><TD><B>Return Value</B></TD><TD><B>Description</B></TD></TR><TR><TD>void</TD><TD>not used</TD></TR></TABLE>
<HR>
<A NAME=CScintillaWnd_1><H1>CScintillaWnd class</H1></A>
CScintillaWnd <B>class CScintillaWnd</B><B>: public CWnd</B><P>

Class of a GCL Scintilla syntax coloring edit control for MFC<P>
Defined in: D:/PROJECTS/GCL/VGCL/SCINTILLAMFC/SCINTILLAWND.H<P>

<H3>Class Members</H3><B>public constructor - destructor</B>

<DL><DT><A HREF=#CScintillaWnd__CScintillaWnd>CScintillaWnd</A><B>()</B>
<DD>empty Constructor<P>
<DT><B>virtual</B> <A HREF=#CScintillaWnd__.7eCScintillaWnd>~CScintillaWnd</A><B>()</B>
<DD>destructor<P>
</DL><H3>Class Members</H3><B>public macro members</B>

<DL><DT><B>BOOL GetDisplayLinenumbers()</B>
<DD>return linenumber display flag<P>
<DT><B>BOOL GetDisplaySelection()</B>
<DD>return selection display flag<P>
<DT><B>BOOL GetDisplayFolding()</B>
<DD>return folding margin display flag<P>
<DT><B>virtual void SetSearchflags(int nSearchflags)</B>
<DD>set search flags<P>
</DL><H3>Class Members</H3><B>public function members</B>

<DL><DT><B>static BOOL Register(CWinApp *app, UINT id)</B>
<DD>register a window class to use scintilla in a dialog<P>
<DT><B>static HMODULE</B> <A HREF=#CScintillaWnd__LoadScintillaDll>LoadScintillaDll</A><B>(LPCSTR szLexerDll = NULL)</B>
<DD>try to load Lexer DLL<P>
<DT><B>virtual BOOL</B> <A HREF=#CScintillaWnd__Create>Create</A><B>(LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID)</B>
<DD>create window<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__SetText>SetText</A><B>(LPCSTR szText)</B>
<DD>Set Text to the Scintilla control<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__GetText>GetText</A><B>(CString &strText)</B>
<DD>Get Text from the Scintilla control<P>
<DT><B>virtual LPSTR</B> <A HREF=#CScintillaWnd__GetText>GetText</A><B>()</B>
<DD>Get Text from the Scintilla control<P>
<DT><B>virtual BOOL</B> <A HREF=#CScintillaWnd__LoadFile>LoadFile</A><B>(LPCSTR szFile)</B>
<DD>Load a file<P>
<DT><B>virtual BOOL</B> <A HREF=#CScintillaWnd__SaveFile>SaveFile</A><B>(LPCSTR szFile)</B>
<DD>Save a file<P>
<DT><B>virtual int</B> <A HREF=#CScintillaWnd__GetFormatFromExtension>GetFormatFromExtension</A><B>(LPCSTR szExtension)</B>
<DD>try to find lexer format from extension<P>
<DT><B>virtual int</B> <A HREF=#CScintillaWnd__GetLinenumberChars>GetLinenumberChars</A><B>()</B>
<DD>calcluate number of chars needed for linenumberdisplay<P>
<DT><B>virtual int</B> <A HREF=#CScintillaWnd__GetLinenumberWidth>GetLinenumberWidth</A><B>()</B>
<DD>calcluate number of pixels for linenumber display<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__SetDisplayLinenumbers>SetDisplayLinenumbers</A><B>(BOOL bFlag = TRUE)</B>
<DD>set display of linenumbers on/off<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__SetDisplaySelection>SetDisplaySelection</A><B>(BOOL bFlag = TRUE)</B>
<DD>set display of selection/bookmark margin on/off<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__SetDisplayFolding>SetDisplayFolding</A><B>(BOOL bFlag = TRUE)</B>
<DD>set display of source folding margin on/off<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__Cut>Cut</A><B>()</B>
<DD>cut selection to clipboard<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__Copy>Copy</A><B>()</B>
<DD>copy selection to clipboard<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__Paste>Paste</A><B>()</B>
<DD>paste from clipboard<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__Clear>Clear</A><B>()</B>
<DD>clear selection<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__Undo>Undo</A><B>()</B>
<DD>undo last change<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__Redo>Redo</A><B>()</B>
<DD>redo last change<P>
<DT><B>virtual BOOL</B> <A HREF=#CScintillaWnd__CanUndo>CanUndo</A><B>()</B>
<DD>check if we can undo<P>
<DT><B>virtual BOOL</B> <A HREF=#CScintillaWnd__CanRedo>CanRedo</A><B>()</B>
<DD>check if we can redo<P>
<DT><B>virtual BOOL</B> <A HREF=#CScintillaWnd__CanPaste>CanPaste</A><B>()</B>
<DD>check if we have something to paste from clipboard<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__SelectAll>SelectAll</A><B>()</B>
<DD>select complete text<P>
<DT><B>virtual long</B> <A HREF=#CScintillaWnd__GetCurrentLine>GetCurrentLine</A><B>()</B>
<DD>return the current line number<P>
<DT><B>virtual long</B> <A HREF=#CScintillaWnd__GetCurrentColumn>GetCurrentColumn</A><B>()</B>
<DD>return the current column number<P>
<DT><B>virtual long</B> <A HREF=#CScintillaWnd__GetCurrentPosition>GetCurrentPosition</A><B>()</B>
<DD>return the current character position within the file<P>
<DT><B>virtual int</B> <A HREF=#CScintillaWnd__GetCurrentStyle>GetCurrentStyle</A><B>()</B>
<DD>return the current style number at the current character position<P>
<DT><B>virtual int</B> <A HREF=#CScintillaWnd__GetCurrentFoldinglevel>GetCurrentFoldinglevel</A><B>()</B>
<DD>return the current folding level at the current character position<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__SetFontname>SetFontname</A><B>(int nStyle, LPCSTR szFontname)</B>
<DD>set the fontname for a style number<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__SetFontheight>SetFontheight</A><B>(int nStyle, int nHeight)</B>
<DD>set the fontname height in points for a style number<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__SetForeground>SetForeground</A><B>(int nStyle, COLORREF crForeground)</B>
<DD>set the foregroundcolor for a style number<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__SetBackground>SetBackground</A><B>(int nStyle, COLORREF crBackground)</B>
<DD>set the backgroundcolor for a style number<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__SetBold>SetBold</A><B>(int nStyle, BOOL bFlag)</B>
<DD>set given style to bold<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__SetItalic>SetItalic</A><B>(int nStyle, BOOL bFlag)</B>
<DD>set given style to bold<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__SetUnderline>SetUnderline</A><B>(int nStyle, BOOL bFlag)</B>
<DD>set given style to bold<P>
<DT><B>virtual BOOL</B> <A HREF=#CScintillaWnd__GetOverstrike>GetOverstrike</A><B>()</B>
<DD>get flag if we are in overstrike mode<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__SetOverstrike>SetOverstrike</A><B>(BOOL bOverstrike)</B>
<DD>set flag for overstrike mode<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__Init>Init</A><B>()</B>
<DD>init the view with reasonable defaults<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__UpdateUI>UpdateUI</A><B>()</B>
<DD>called whenever the text is changed - we can update any indicators and do brace matching<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__DoDefaultFolding>DoDefaultFolding</A><B>(int nMargin, long lPosition)</B>
<DD>do default folding<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__Refresh>Refresh</A><B>()</B>
<DD>refresh lexer and display after new settings<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__AddBookmark>AddBookmark</A><B>(long lLine)</B>
<DD>add a bookmark = marker type 0<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__DeleteBookmark>DeleteBookmark</A><B>(long lLine)</B>
<DD>delete a bookmark = marker type 0<P>
<DT><B>virtual BOOL</B> <A HREF=#CScintillaWnd__HasBookmark>HasBookmark</A><B>(long lLine)</B>
<DD>check for bookmark = marker type 0<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__FindNextBookmark>FindNextBookmark</A><B>()</B>
<DD>Find next bookmark<P>
<DT><B>virtual void</B> <A HREF=#CScintillaWnd__FindPreviousBookmark>FindPreviousBookmark</A><B>()</B>
<DD>Find previous boo

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -