Cxstatic
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
hello; i wanted to make my editbox transparent i used the cxstatic class from Codeproject for the static ones is was OK but the problem is in updating time for example the new time is redrown on the old one !
fx9200 wrote:
i wanted to make my editbox transparent
HBRUSH CYourDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor); CBrush m_Brush; m_Brush.CreateStockObject (NULL_BRUSH); if(pWnd->GetDlgCtrlID()==IDC_EDIT1/*ID of the item*/) { pDC->SetBkMode (1); return (HBRUSH)m_Brush; } return hbr; }
Try this for the edit box. I think I answered the same question yesterday. Didn't this solve your problem.
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
hello; i wanted to make my editbox transparent i used the cxstatic class from Codeproject for the static ones is was OK but the problem is in updating time for example the new time is redrown on the old one !