本文整理汇总了C++中CEdit::GetBuffer方法的典型用法代码示例。如果您正苦于以下问题:C++ CEdit::GetBuffer方法的具体用法?C++ CEdit::GetBuffer怎么用?C++ CEdit::GetBuffer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CEdit
的用法示例。
在下文中一共展示了CEdit::GetBuffer方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Load
void CControlState::Load( CEditX *pCtrl )
{
if ( !pCtrl )
return;
ASSERT( IsWindow( pCtrl->m_hWnd ) );
CEdit *pEdit = pCtrl->m_pEdit;
if ( !pEdit )
return;
CBuffer *pBuff = pEdit->GetBuffer();
m_bColorSyntax = pEdit->m_bColorSyntax;
m_bAllowHSplit = pEdit->m_bAllowHSplit;
m_bAllowVSplit = pEdit->m_bAllowVSplit;
m_bHScroll = (BYTE)pEdit->ShowHScrollBar();
m_bVScroll = (BYTE)pEdit->ShowVScrollBar();
m_bSmoothScroll = pEdit->m_bSmoothScroll;
m_bLineToolTips = pEdit->m_bLineToolTips;
m_bShowLeftMargin = pEdit->m_bShowLeftMargin;
m_bAllowColumnSel = pEdit->m_bAllowColumnSel;
m_bAllowDragDrop = pEdit->m_bAllowDragDrop;
m_bExpandTabs = pEdit->m_bExpandTabs;
m_xPosHSplitter = pEdit->m_xPosHSplitter;
m_yPosVSplitter = pEdit->m_yPosVSplitter;
m_eIndentStyle = pEdit->m_eIndentStyle;
m_nTabSize = (WORD)pBuff->GetTabSize();
m_bDisplayWhitespace = pEdit->m_bDisplayWhitespace;
m_bWantCarriageReturn = pBuff->WantCarriageReturn();
m_bEnabled = IsWindowEnabled( pEdit->m_hWnd );
m_bGlobalProps = pEdit->m_bGlobalProps;
m_bModified = pBuff->IsModified();
m_bOverType = pEdit->m_bOverType;
m_bReadOnly = pBuff->IsReadOnly();
m_bPreserveCase = pEdit->g_FindReplaceData.m_bPreserveCase;
m_bCaseSensitiveSearch = pEdit->g_FindReplaceData.m_bCaseSensitiveSearch;
m_bWholeWordOnly = pEdit->g_FindReplaceData.m_bWholeWordOnly;
m_bRegExp = pEdit->g_FindReplaceData.m_bRegExp;
m_nMaxUndo = pBuff->GetMaxUndo();
m_Colors = pEdit->m_Colors;
m_FontStyles = pEdit->m_FontStyles;
m_bSelBounds = pEdit->m_bSelBounds;
m_bHideSel = pEdit->m_bHideSel;
m_bNormalizeCase = pEdit->m_Buffer.NormalizeCase();
m_LineNum = pEdit->m_LineNum;
m_bOvertypeCaret = pEdit->m_bOvertypeCaret;
m_nHighlightedLine = pEdit->m_nHighlightedLine;
m_dwBorderStyle = CM_GetBorderStyle( pCtrl->m_hWnd );
m_bStealKeys = pCtrl->m_bStealKeys;
HFONT hFont = ( HFONT ) SendMessage( pCtrl->m_hWnd, WM_GETFONT, 0, 0 );
int cbSize = GetObject( hFont, sizeof( LOGFONT ), NULL );
VERIFY( GetObject( hFont, cbSize, &m_lf ) );
pCtrl->get_Text( &m_bstrText );
pCtrl->get_Language( &m_bstrLang );
}