#include ... void CMyDIB::ScaleTo (DWORD dwNewWidth, DWORD dwNewHeight) { C2PassScale ScaleEngine; COLORREF *pOldBitmap = m_pBits; m_pBits = ScaleEngine.AllocAndScale(m_pBits, m_dwWidth, m_