I have an MFCActiveX control, in which there is a ctrl class created by the wizard. Within that class there is a function named ondraw like this..
When I use this control anywhere in an application it displays an Ellipse. I want to display a Bitmap and some written text instead of that ellipse. So what all changes do I have to make in OnDraw() function??Code:void CGregTestCtrl::OnDraw(
CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid)
{
// TODO: Replace the following code with your own drawing code.
pdc->FillRect(rcBounds, CBrush::FromHandle((HBRUSH)GetStockObject(GRAY_BRUSH)));
pdc->Ellipse(rcBounds);
}
