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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to change the background of a label?

How to change the background of a label?

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphicshelptutorial
3 Posts 3 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
    mosali satish
    wrote on last edited by
    #1

    hi friends, in my application i have applied a bitmap image as the background of dialog but when i do this the background of static controls,radio buttons is not changing how can i get rid of this problem. please suggest a solution for this problem. sathish

    L _ 2 Replies Last reply
    0
    • M mosali satish

      hi friends, in my application i have applied a bitmap image as the background of dialog but when i do this the background of static controls,radio buttons is not changing how can i get rid of this problem. please suggest a solution for this problem. sathish

      L Offline
      L Offline
      Laxman Auti
      wrote on last edited by
      #2

      Use ModifyStyleEx(0, WS_EX_TRANSPARENT); for control. As well as you have to handle the OnCtlColor of the Dialog and Return the NULL brush for controls Knock out 't' from can't, You can if you think you can :cool:

      1 Reply Last reply
      0
      • M mosali satish

        hi friends, in my application i have applied a bitmap image as the background of dialog but when i do this the background of static controls,radio buttons is not changing how can i get rid of this problem. please suggest a solution for this problem. sathish

        _ Offline
        _ Offline
        _AnsHUMAN_
        wrote on last edited by
        #3

        For Static Controls See Here[^] (You can also do this) For a radio button try this in OnCtlColor as A_Laxman suggests: if(pWnd->GetDlgCtrlID()==IDC_RADIO1 || pWnd->GetDlgCtrlID()==IDC_STATIC) //IDC_RADIO1 is controlID for radio button hbr=(HBRUSH)GetStockObject(NULL_BRUSH); Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

        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