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); }
//---------------------------------------------------------------------------- // 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); }
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); }
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); }
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); }