本文整理汇总了C++中CEdit::BoundSelection方法的典型用法代码示例。如果您正苦于以下问题:C++ CEdit::BoundSelection方法的具体用法?C++ CEdit::BoundSelection怎么用?C++ CEdit::BoundSelection使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CEdit
的用法示例。
在下文中一共展示了CEdit::BoundSelection方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CommitChanges
void CPropInfo::CommitChanges( eProps eWhat )
{
for ( int nWnd = 0; nWnd < CEdit::g_nhWndCount; nWnd++ )
{
HWND hWnd = m_pCtrl->m_bGlobalProps ? CEdit::g_phWnds[ nWnd ] : m_pCtrl->m_hWnd;
CEdit *pCtrl = ( CEdit * ) GetWindowLong( hWnd, 0 );
pCtrl->Repaint( FALSE );
if ( eWhat == eMisc )
{
if ( m_bSmoothScroll != pCtrl->m_bSmoothScroll )
{
SendMessage( hWnd, CMM_ENABLESMOOTHSCROLLING, m_bSmoothScroll, 0 );
}
if ( m_bShowLeftMargin != pCtrl->m_bShowLeftMargin )
{
SendMessage( hWnd, CMM_ENABLELEFTMARGIN, m_bShowLeftMargin, 0 );
}
if ( m_bAllowDragDrop != pCtrl->m_bAllowDragDrop )
{
SendMessage( hWnd, CMM_ENABLEDRAGDROP, m_bAllowDragDrop, 0 );
}
if ( m_bLineToolTips != pCtrl->m_bLineToolTips )
{
SendMessage( hWnd, CMM_ENABLELINETOOLTIPS, m_bLineToolTips, 0 );
}
if ( m_bAllowColumnSel != pCtrl->m_bAllowColumnSel )
{
SendMessage( hWnd, CMM_ENABLECOLUMNSEL, m_bAllowColumnSel, 0 );
}
if ( m_bColorSyntax != pCtrl->m_bColorSyntax )
{
SendMessage( hWnd, CMM_ENABLECOLORSYNTAX, m_bColorSyntax, 0 );
}
if ( m_bShowHScrollBar != pCtrl->ShowHScrollBar() )
{
SendMessage( hWnd, CMM_SHOWSCROLLBAR, TRUE, m_bShowHScrollBar );
}
if ( m_bShowVScrollBar != pCtrl->ShowVScrollBar() )
{
SendMessage( hWnd, CMM_SHOWSCROLLBAR, FALSE, m_bShowVScrollBar );
}
if ( m_bAllowHSplit != pCtrl->m_bAllowHSplit )
{
SendMessage( hWnd, CMM_ENABLESPLITTER, TRUE, m_bAllowHSplit );
}
if ( m_bAllowVSplit != pCtrl->m_bAllowVSplit )
{
SendMessage( hWnd, CMM_ENABLESPLITTER, FALSE, m_bAllowVSplit );
}
if ( m_bSelBounds != pCtrl->BoundSelection() )
{
SendMessage( hWnd, CMM_ENABLESELBOUNDS, m_bSelBounds, 0 );
}
if ( m_nMaxUndo != pCtrl->m_Buffer.GetMaxUndo() )
{
SendMessage( hWnd, CMM_SETUNDOLIMIT, m_nMaxUndo, 0 );
}
SendMessage( hWnd, CMM_SETLINENUMBERING, 0, ( LPARAM ) &m_cmLineNum );
}
else if ( eWhat == eColorFont )
{
CM_COLORS Colors;
ZeroMemory( &Colors, sizeof( Colors ) );
Colors.crWindow = m_crFore[ IDX_WINDOW ];
Colors.crLeftMargin = m_crFore[ IDX_LMARGIN ];
Colors.crBookmark = m_crFore[ IDX_BOOKMARK ];
Colors.crBookmarkBk = m_crBack[ IDX_BOOKMARK ];
Colors.crBreakpoint = m_crFore[ IDX_BREAKPOINT ];
Colors.crBreakpointBk = m_crBack[ IDX_BREAKPOINT ];
Colors.crText = m_crFore[ IDX_TEXT ];
Colors.crTextBk = m_crBack[ IDX_TEXT ];
Colors.crNumber = m_crFore[ IDX_NUMBER ];
Colors.crNumberBk = m_crBack[ IDX_NUMBER ];
Colors.crKeyword = m_crFore[ IDX_KEYWORD ];
Colors.crKeywordBk = m_crBack[ IDX_KEYWORD ];
Colors.crOperator = m_crFore[ IDX_OPERATOR ];
Colors.crOperatorBk = m_crBack[ IDX_OPERATOR ];
Colors.crScopeKeyword = m_crFore[ IDX_SCOPEKEYWORD ];
Colors.crScopeKeywordBk = m_crBack[ IDX_SCOPEKEYWORD ];
Colors.crComment = m_crFore[ IDX_COMMENT ];
Colors.crCommentBk = m_crBack[ IDX_COMMENT ];
Colors.crString = m_crFore[ IDX_STRING ];
Colors.crStringBk = m_crBack[ IDX_STRING ];
Colors.crTagText = m_crFore[ IDX_TAGTEXT ];
Colors.crTagTextBk = m_crBack[ IDX_TAGTEXT ];
Colors.crTagEntity = m_crFore[ IDX_TAGENT ];
Colors.crTagEntityBk = m_crBack[ IDX_TAGENT ];
Colors.crTagElementName = m_crFore[ IDX_TAGELEMNAME ];
Colors.crTagElementNameBk = m_crBack[ IDX_TAGELEMNAME ];
Colors.crTagAttributeName = m_crFore[ IDX_TAGATTRNAME ];
Colors.crTagAttributeNameBk = m_crBack[ IDX_TAGATTRNAME ];
Colors.crLineNumber = m_crFore[ IDX_LINENUMBER ];
Colors.crLineNumberBk = m_crBack[ IDX_LINENUMBER ];
Colors.crHDividerLines = m_crFore[ IDX_HDIVIDERLINES ];
Colors.crVDividerLines = m_crFore[ IDX_VDIVIDERLINES ];
Colors.crHighlightedLine = m_crFore[ IDX_HIGHLIGHTEDLINE ];
Colors.crExtra1 = m_crFore[ IDX_EXTRA1 ];
//.........这里部分代码省略.........