Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. (Updated) Bitmap and Radio Button :o)

(Updated) Bitmap and Radio Button :o)

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsarchitecturequestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MemLeak
    wrote on last edited by
    #1

    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...

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups