Cimagelist.Draw() returning 0
I want to display Cimagelist object in a dialog box
Please see what is wrong ---
1 2 3 4 5 6
|
OnInit() m_listDiscoveryAnimation -> CImagelist object
{
m_bmpDiscovering.LoadBitmap(IDB_GLOBE1);
m_listDiscoveryAnimation.Create(31, 31, ILC_MASK | ILC_COLOR24, 0, 7);
m_listDiscoveryAnimation.Add(&m_bmpDiscovering,RGB(255, 0, 255));
}
| |
NOw -- displaying in Onpaint...
1 2 3 4 5
|
OnPaint()
{
CPaintDC dc(this);
m_listDiscoveryAnimation.Draw(&dc, m_nBitmapCell, m_ptDrawAnimation, ILD_NORMAL );
}
| |
m_listDiscoveryAnimation.Draw returning Zero ----so the bitmap is not getting displayed in the Dialog box
but getlast error is not giving any error ...
But In debug mode it is working fine ---- So what may the problem ?????
Well it's working now -- I used DrawIndirect() -- it's woking
still don't why draw() was not working
Topic archived. No new replies allowed.