(Updated) Bitmap and Radio Button :o)
-
Hi, I have a dialog with a bitmap background. When I put my radio buttons on the dialog, I cannot see the bitmap under the rectangle created by the radio button. I would like to see the bitmap under the radio buttons? I can change the color if I want with: HBRUSH RightDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { HBRUSH hbr = ShapedDlg::OnCtlColor(pDC, pWnd, nCtlColor); if ( pWnd->GetSafeHwnd() == GetDlgItem(IDC_RADIO1)->GetSafeHwnd() && CTLCOLOR_STATIC == nCtlColor ) { // m_bkbrush is a CBrush member variable m_bkbrush.CreateSolidBrush ( RGB(255,0,0) ); pDC->SetBkMode ( TRANSPARENT ); return m_bkbrush; } return hbr; } but what can I do if I have a bitmap unstead of solid color? any ideas? Regards Mykel Everything's beautiful if you look at it long enough...