我的ondraw函数:
void CColorLedCtrl::OnDraw(
CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid)
{
// TODO: Replace the following code with your own drawing code.

CRect rect;
rect.SetRect(rcBounds.left,rcBounds.top,rcBounds.Width(),rcBounds.Height());
CBrush brush;
brush.CreateSolidBrush(RGB(255,0,0));
pdc->FillRect(&rect,&brush);
brush.DeleteObject();
}
onsize
void CColorLedCtrl::OnSize(UINT nType, int cx, int cy) 
{
COleControl::OnSize(nType, cx, cy);

// TODO: Add your message handler code here if (::IsWindow(this->GetSafeHwnd()))
{
CRect rc;
this->GetWindowRect(&rc);
if (rc.Width()!=m_iWidth || rc.Height()!=m_iHeight) 
{
::MoveWindow(this->GetSafeHwnd(),rc.left,rc.top,m_iWidth,m_iHeight,TRUE);
this->Invalidate();
}
}
}
是不是要处理什么其它消息?