本文整理汇总了C++中CBCGPDrawManager::DrawLine方法的典型用法代码示例。如果您正苦于以下问题:C++ CBCGPDrawManager::DrawLine方法的具体用法?C++ CBCGPDrawManager::DrawLine怎么用?C++ CBCGPDrawManager::DrawLine使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CBCGPDrawManager
的用法示例。
在下文中一共展示了CBCGPDrawManager::DrawLine方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnDraw
//*****************************************************************************************
void CBCGPMenuButton::OnDraw (CDC* pDC, const CRect& rect, UINT uiState)
{
ASSERT_VALID (pDC);
CBCGPDrawOnGlass dog (m_bOnGlass);
CSize sizeArrow = CBCGPMenuImages::Size ();
CRect rectParent = rect;
rectParent.right -= sizeArrow.cx + nImageHorzMargin;
CBCGPButton::OnDraw (pDC, rectParent, uiState);
CRect rectArrow = rect;
rectArrow.left = rectParent.right;
CBCGPMenuImages::Draw (pDC,
m_bRightArrow ? CBCGPMenuImages::IdArowRightLarge : CBCGPMenuImages::IdArowDownLarge,
rectArrow,
(uiState & ODS_DISABLED) ? CBCGPMenuImages::ImageGray :
CBCGPMenuImages::GetStateByColor((m_bVisualManagerStyle && !m_bDontSkin && m_clrText != (COLORREF)-1) ? m_clrText : globalData.clrBtnText, FALSE));
if (m_bDefaultClick)
{
//----------------
// Draw separator:
//----------------
CRect rectSeparator = rectArrow;
rectSeparator.right = rectSeparator.left + 2;
rectSeparator.DeflateRect (0, 2);
if (!m_bWinXPTheme || m_bDontUseWinXPTheme)
{
rectSeparator.left += m_sizePushOffset.cx;
rectSeparator.top += m_sizePushOffset.cy;
}
if (m_bOnGlass)
{
CBCGPDrawManager dm (*pDC);
dm.DrawLine (rectSeparator.left, rectSeparator.top, rectSeparator.left, rectSeparator.bottom,
globalData.clrBarDkShadow);
}
else if (m_bVisualManagerStyle && !m_bDontSkin)
{
pDC->Draw3dRect (rectSeparator, globalData.clrBarDkShadow, globalData.clrBarHilite);
}
else
{
pDC->Draw3dRect (rectSeparator, globalData.clrBtnDkShadow, globalData.clrBtnHilite);
}
}
}