本文整理汇总了C++中Layer::DrawBitMap方法的典型用法代码示例。如果您正苦于以下问题:C++ Layer::DrawBitMap方法的具体用法?C++ Layer::DrawBitMap怎么用?C++ Layer::DrawBitMap使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Layer
的用法示例。
在下文中一共展示了Layer::DrawBitMap方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DrawMinimize
void BlueDecorator::DrawMinimize( const Rect& cRect, bool bActive, bool bRecessed )
{
Layer* pcView = GetLayer();
pcView->SetDrawingMode (DM_OVER);
if ((m_nFlags & WND_NO_MINIM_BUT)==0)
{
if (bRecessed)
pcView->DrawBitMap (g_pcButtons,Rect (75,0,99,17),cRect);
else if (bActive)
pcView->DrawBitMap (g_pcButtons,Rect (0,0,23,17),cRect);
else
// inactive
pcView->DrawBitMap (g_pcButtons,Rect (150,0,174,17),cRect);
}
pcView->SetDrawingMode (DM_COPY);
}
示例2: DrawDecor
//----------------------------------------------------------------------------
// NAME:
// DESC:
// NOTE:
// SEE ALSO:
//----------------------------------------------------------------------------
void BlueDecorator::DrawDecor (void)
{
Layer* pcView = GetLayer();
pcView->SetDrawingMode (DM_OVER);
pcView->DrawBitMap (g_pcDecor, Rect (0,0,23,8),
Rect (7,8,7+23,8+8));
pcView->SetDrawingMode (DM_COPY);
}
示例3: DrawDepth
void BlueDecorator::DrawDepth( const Rect& cRect, bool bActive, bool bRecessed )
{
Layer* pcView = GetLayer();
pcView->SetDrawingMode (DM_OVER);
if ((m_nFlags & WND_NO_DEPTH_BUT)==0)
{
if (bRecessed)
pcView->DrawBitMap (g_pcButtons,Rect (250,0,274,17),cRect);
else if (bActive)
pcView->DrawBitMap (g_pcButtons,Rect (225,0,249,17),cRect);
else
//inactive
pcView->DrawBitMap (g_pcButtons,Rect (275,0,299,17),cRect);
}
pcView->SetDrawingMode (DM_COPY);
}
示例4: DrawClose
void BlueDecorator::DrawClose( const Rect& cRect, bool bActive, bool bRecessed )
{
Layer* pcView = GetLayer();
pcView->SetDrawingMode (DM_OVER);
if ((m_nFlags & WND_NO_CLOSE_BUT)==0)
{
if (bRecessed)
pcView->DrawBitMap (g_pcButtons,Rect (125,0,149,17),cRect);
else if (bActive)
pcView->DrawBitMap (g_pcButtons,Rect (50,0,74,17),cRect);
else
//inactive
pcView->DrawBitMap (g_pcButtons,Rect (200,0,223,17),cRect);
}
pcView->SetDrawingMode (DM_COPY);
}
示例5: DrawMaxRestore
void BlueDecorator::DrawMaxRestore( const Rect& cRect, bool bActive, bool bRecessed )
{
Layer* pcView = GetLayer();
pcView->SetDrawingMode (DM_OVER);
if ((m_nFlags & WND_NO_MAX_RESTORE_BUT)==0)
{
if (bRecessed)
pcView->DrawBitMap (g_pcButtons,Rect (100,0,124,17),cRect);
else if (bActive)
pcView->DrawBitMap (g_pcButtons,Rect (25,0,49,17),cRect);
else
//inactive
pcView->DrawBitMap (g_pcButtons,Rect (175,0,199,17),cRect);
}
pcView->SetDrawingMode (DM_COPY);
}