Custom draw MFC.
I'm using a backbuffer. And drawing buttons with graphics.DrawImage.
And it works well. ( Because I can handle the button image. Because it
is manually loaded. Not by MFC). But When I using customized CListCtrl
I can't handle the image of List Control. So, I copyed the image from
a buffer( which is supposed to be drawed by MFC) to a buffer( this
buffer is BitBlt to the monitor).
But I only get the "windows background image" of the region of
CListCtrl. The event and mouse cursor is changed at the column. The
CListCtrl "is" there. But not be shown. Anyone can give me a hint?
Next is the copy method mentioned above.
if( !IsWindowEnabled() ) return;
Gdiplus::Bitmap *pTargetBitmap = m_parentDlg->m_main_dblBuffer; // a
buffer will be bitblted to monitor
if( pTargetBitmap != NULL)
Gdiplus::Graphics g( pTargetBitmap );
HDC hdc1 = g.GetHDC();
CDC* target = CDC::FromHandle(hdc1);
CDC* src = this->GetWindowDC();// Background buffer of CListCtrl( my