Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
void CButton3D::PaintBkInternal(CDC *pDC)
{
CRect rect;
GetClientRect(rect);
if ( m_dcBk.m_hDC == NULL)
{
CDC bitmapDC;
bitmapDC.CreateCompatibleDC( pDC);
m_pbmpOldBk = bitmapDC.SelectObject( &m_bmpBk);
for ( int i = rect.left; i < rect.right; i += m_cxBitmapBkGr)
for ( int j = rect.top; j < rect.bottom; j += m_cyBitmapBkGr)
pDC->BitBlt( i, j, m_cxBitmapBkGr, m_cyBitmapBkGr, &bitmapDC, 0, 0, SRCCOPY );
//pDC->BitBlt(0, 0, rect.Width(), rect.Height(), &bitmapDC, 0, 0, SRCCOPY);
}
}
void CButton3D::SetBkInternal(UINT nBitmapID)
{
if ( m_bmpBk.LoadBitmap( nBitmapID))
{
BITMAP bm;
m_bmpBk.GetBitmap( &bm );
m_cxBitmapBkGr = bm.bmWidth;
m_cyBitmapBkGr = bm.bmHeight;
if ( (m_cxBitmapBkGr > 0) && (m_cyBitmapBkGr > 0))
m_bBkInternal = TRUE;
}
}