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. Making CEdit Transparent

Making CEdit Transparent

Scheduled Pinned Locked Moved C / C++ / MFC
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.
  • S Offline
    S Offline
    sudhir_Kumar
    wrote on last edited by
    #1

    I want a edit box to get transparent upto a level on mouse leave or when lost of focus from edit box. The edit box will get fully visible on Setfocus or mousehover.

    -@SuDhIrKuMaR@-

    I P 2 Replies Last reply
    0
    • S sudhir_Kumar

      I want a edit box to get transparent upto a level on mouse leave or when lost of focus from edit box. The edit box will get fully visible on Setfocus or mousehover.

      -@SuDhIrKuMaR@-

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      You'd have to experiment, but I think you can handle the WM_CTLCOLOREDIT message and set a brush for the background of the edit box. You can detect whether the edit box has focus or not, and set different backgrounds. If one brush looks a lot like your dialog background, then transparency! Or perhaps you can set a NULL brush? I hope that gives you something to work with. Iain.

      Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

      1 Reply Last reply
      0
      • S sudhir_Kumar

        I want a edit box to get transparent upto a level on mouse leave or when lost of focus from edit box. The edit box will get fully visible on Setfocus or mousehover.

        -@SuDhIrKuMaR@-

        P Offline
        P Offline
        Paresh Chitte
        wrote on last edited by
        #3

        Hi, Please have a look at this[^]. Use CDC::SetBkMode. Regards, Paresh.

        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