3,245
社区成员
发帖
与我相关
我的任务
分享
LRESULT CAcVideoCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (COleControl::OnCreate(lpCreateStruct) == -1)
return -1;
// TODO: 在此添加您专用的创建代码
m_AcVideoDlg.Create(IDD_PROPPAGE_ACVIDEO, this);
return 0;
}
void CAcVideoCtrl::OnDraw(
CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid)
{
if (!pdc)
return;
// TODO: 用您自己的绘图代码替换下面的代码。
/*pdc->FillRect(rcBounds, CBrush::FromHandle((HBRUSH)GetStockObject(WHITE_BRUSH)));
pdc->Ellipse(rcBounds);*/
m_AcVideoDlg.MoveWindow(rcBounds,TRUE);
}