CImage myImage; myImage.Load(my_symbol->outfile); int vWidth = myImage.GetWidth(); int vHeight = myImage.GetHeight(); CRect m_ShowDRect; m_ShowDRect = CRect(vLeft, vTop, vWdith, vHeight); myImage.Draw(pDC->m_hDC, CRect(&m_ShowDRect)); int old = pDC->SetROP2(R2_NOTXORPEN); pDC->Rectangle(m_ShowDRect); pDC->SetROP2(old); myImage.Destroy();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)