本文整理汇总了C++中CBCGPDrawManager::DrawRotated方法的典型用法代码示例。如果您正苦于以下问题:C++ CBCGPDrawManager::DrawRotated方法的具体用法?C++ CBCGPDrawManager::DrawRotated怎么用?C++ CBCGPDrawManager::DrawRotated使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CBCGPDrawManager
的用法示例。
在下文中一共展示了CBCGPDrawManager::DrawRotated方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dm
//*********************************************************************************************************
void CBCGPVisualManagerVS2008::OnDrawAutoHideButtonBorder (CDC* pDC, CRect rect, CRect rectBorderSize, CBCGPAutoHideButton* pButton)
{
ASSERT_VALID (pDC);
ASSERT_VALID (pButton);
if (globalData.m_nBitsPerPixel <= 8 || globalData.IsHighContastMode () ||
m_hThemeTab == NULL)
{
CBCGPVisualManagerVS2005::OnDrawAutoHideButtonBorder (pDC, rect, rectBorderSize, pButton);
return;
}
const int nState = pButton->IsHighlighted () ? TIS_HOT : TIS_NORMAL;
const DWORD dwAlign = (pButton->GetAlignment ()) & CBRS_ALIGN_ANY;
CBCGPDrawManager dm (*pDC);
switch (dwAlign)
{
case CBRS_ALIGN_LEFT:
case CBRS_ALIGN_RIGHT:
{
CRect rectTab (0, 0, rect.Height (), rect.Width ());
CDC dcMem;
dcMem.CreateCompatibleDC (pDC);
CBitmap bmpMem;
bmpMem.CreateCompatibleBitmap (pDC, rectTab.Width (), rectTab.Height ());
CBitmap* pBmpOld = (CBitmap*) dcMem.SelectObject (&bmpMem);
(*m_pfDrawThemeBackground) (m_hThemeTab, dcMem.GetSafeHdc(), TABP_TABITEM, nState, &rectTab, 0);
dm.DrawRotated (rect, dcMem, dwAlign == CBRS_ALIGN_LEFT);
dcMem.SelectObject (pBmpOld);
}
break;
case CBRS_ALIGN_TOP:
case CBRS_ALIGN_BOTTOM:
(*m_pfDrawThemeBackground) (m_hThemeTab, pDC->GetSafeHdc(), TABP_TABITEM, nState, &rect, 0);
if (dwAlign == CBRS_ALIGN_TOP)
{
dm.MirrorRect (rect, FALSE);
break;
}
}
}