Hi all,
I have a picture control (bmp) and inside f it I have a static control that displays the current time and gets refreshed every second.
I want to make the static control transperant so that the bmp will be the background
I've tried the following:
That works BUT... when I update the time (every second) , the new time is merging with the old time so I get one big mess after few seconds.Code:... m_BrushSol.CreateStockObject(HOLLOW_BRUSH); ... HBRUSH CMyDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { HBRUSH hbr = __super::OnCtlColor(pDC, pWnd, nCtlColor); if ( pWnd->GetDlgCtrlID() == IDC_TIME ) { pDC->SetBkMode(TRANSPARENT); return m_BrushSol; } }
How can I avoid it??
Please help!




Reply With Quote