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

Window opaquenes

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

    Hi Does anybody know if there is a way to control how opaque a window is? Could I make a window e.g. 50% opaque or at least make an image in a window 50% opaque? Thanks in advance. /Per

    C M 2 Replies Last reply
    0
    • P Per

      Hi Does anybody know if there is a way to control how opaque a window is? Could I make a window e.g. 50% opaque or at least make an image in a window 50% opaque? Thanks in advance. /Per

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You'll need the platform SDK and Windows 2000 ( or XP, I guess ). I forget the call, but I can look it up for you if you haven't found it. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.

      1 Reply Last reply
      0
      • P Per

        Hi Does anybody know if there is a way to control how opaque a window is? Could I make a window e.g. 50% opaque or at least make an image in a window 50% opaque? Thanks in advance. /Per

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        This oughta do it

        DWORD dwExstyle = GetWindowExStyle(hwnd);

        SetWindowLong ( hwnd, dwExstyle|WS_EX_LAYERED );
        SetLayeredWindowAttributes ( hwnd, 0, 128, LWA_ALPHA );

        --Mike-- http://home.inreach.com/mdunn/ Trillian: What are you supposed to do with a manically depressed robot? Marvin: You think you've got problems. What are you supposed to do if you are a manically depressed robot?

        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