E
Juchuuu, das funktioniert!
Und aufgeräumt wird beim MouseMove:
void CMyView::OnMouseMove(UINT nFlags, CPoint point)
{
if (m_fBildAktiv)
{
OLE_XSIZE_HIMETRIC width;
OLE_YSIZE_HIMETRIC height;
m_bild->get_Width(&width);
m_bild->get_Height(&height);
CRect rectBild(0, 0, width, height);
m_bild->Release();
InvalidateRect(&rectBild);
m_fBildAktiv = false;
}
CFormView::OnMouseMove(nFlags, point);
}
m_fBildAktiv ist ein einfacher bool, den ich in DrawBild so setze:
m_fBildAktiv = (S_OK == bild->Render(dc, x, y, size_x, size_y, 0, height, width, -height, &rc));
Ist noch nicht das Nonplusultra, da es etwas flackert - aber schon super genug. :xmas1: