HBRUSH CTestDialog::OnCtlColor(CDC *pDC,CWnd *pWnd,UINT nCtlColor) { //里面画笔怎么释放 }
if(nCtlColor==CTLCOLOR_STATIC){staticHBRUSHhbrEdit=::CreateSolidBrush(RGB(89,89,89));...
if(nCtlColor == CTLCOLOR_STATIC)
{
static HBRUSH hbrEdit = ::CreateSolidBrush(RGB(89,89,89));
pDC->SetBkColor(RGB(89,89,89));
pDC->SetBkMode(TRANSPARENT);
return hbrEdit;
} 展开
{
static HBRUSH hbrEdit = ::CreateSolidBrush(RGB(89,89,89));
pDC->SetBkColor(RGB(89,89,89));
pDC->SetBkMode(TRANSPARENT);
return hbrEdit;
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询