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. transparent text box

transparent text box

Scheduled Pinned Locked Moved C / C++ / MFC
4 Posts 2 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.
  • J Offline
    J Offline
    JekYu
    wrote on last edited by
    #1

    Hi.. i was just wondering.. how do u create a text box whose background is transparent.. 'coz the static text control, when placed on top of another text control or other controls, covers it / hides the other controls...

    A 1 Reply Last reply
    0
    • J JekYu

      Hi.. i was just wondering.. how do u create a text box whose background is transparent.. 'coz the static text control, when placed on top of another text control or other controls, covers it / hides the other controls...

      A Offline
      A Offline
      Anders Molin
      wrote on last edited by
      #2

      Use TextOut() in the OnPaint() eventhandler... - Anders Money talks, but all mine ever says is "Goodbye!"

      J 1 Reply Last reply
      0
      • A Anders Molin

        Use TextOut() in the OnPaint() eventhandler... - Anders Money talks, but all mine ever says is "Goodbye!"

        J Offline
        J Offline
        JekYu
        wrote on last edited by
        #3

        Is this when you use a static text control??? Is it possible if i get a sample project... Thanks in advance... ciao...

        A 1 Reply Last reply
        0
        • J JekYu

          Is this when you use a static text control??? Is it possible if i get a sample project... Thanks in advance... ciao...

          A Offline
          A Offline
          Anders Molin
          wrote on last edited by
          #4

          I had the same problem some time ago. Instead of a static text, I "wrote" the text myself with TextOut() in the OnPaint handler... You have to do it at runtime. Take a look at TextOut() in MSDN, and try it in your dialogs OnPaint() - Anders Money talks, but all mine ever says is "Goodbye!"

          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