敲门久不应!!!!!!人都跑到哪去了,,CSDN
CButtonTM.hprotected:
//{{AFX_MSG(CButtonTM)
afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
//}}AFX_MSG
CButtonTM.cpp
BEGIN_MESSAGE_MAP(CButtonTM, CButton)
//{{AFX_MSG_MAP(CButtonTM)
ON_WM_CTLCOLOR_REFLECT()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
HBRUSH CButtonTM::CtlColor(CDC* pDC, UINT nCtlColor)
{
// TODO: Change any attributes of the DC here
pDC->SetBkMode(TRANSPARENT);
return (HBRUSH)::GetStockObject(NULL_BRUSH);
}
这样设置之后,,还是达不到透明的效果呀????????
--------------------编程问答-------------------- 敲门久不应,没人或者睡得比较死~
补充:.NET技术 , VC.NET