I have a question regarding LPPICTURE and painting in a contol in a dialog.
My question, how do I clear the picture in a dialog (erase for the next picture to get drawn? I thought I could do it like so:
This code seems to have no effect.Code:.... InvalidateRect(hctrl, NULL, true); UpdateWindow(hctrl);
Here is screen shot #1 followed by screen shot #2.
How do I go about clearing the control before rendering a new pict?
This is how I render the picture: (code from cprog, code guru and code project):
Thank you.Code:gpPicture->Render(hdcCtrl, rect.left, rect.top, rect.right, rect.bottom, 0, hmHeight, hmWidth, -hmHeight, &rc); ReleaseDC( hctrl, hdcCtrl ); gpPicture->Release(); }
It seems like I always have trouble trying to research programming questions on MSDN. Always a bunch of non-existent links:
A whole page of links that don't work!