当前位置: 首页>>代码示例>>C++>>正文


C++ Layer::DrawBitMap方法代码示例

本文整理汇总了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);
}
开发者ID:rickcaudill,项目名称:Pyro,代码行数:18,代码来源:BlueDecorator.cpp

示例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);
}
开发者ID:rickcaudill,项目名称:Pyro,代码行数:15,代码来源:BlueDecorator.cpp

示例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);
}
开发者ID:rickcaudill,项目名称:Pyro,代码行数:19,代码来源:BlueDecorator.cpp

示例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);
}
开发者ID:rickcaudill,项目名称:Pyro,代码行数:19,代码来源:BlueDecorator.cpp

示例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);
}
开发者ID:rickcaudill,项目名称:Pyro,代码行数:19,代码来源:BlueDecorator.cpp


注:本文中的Layer::DrawBitMap方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。