Drawing on a Transparent Window?

Discussion in 'C' started by GregMalick, Aug 28, 2010.

  1. GregMalick

    GregMalick New Member

    Joined:
    Aug 28, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I'm trying to write a Windows App that will let me write or draw in a window and still see what's below. Kinda a transparent Notepad with Borders.

    It's easy to create a transparent Window using:
    CreateWindow() with wndclass.hbrBackground = (HBRUSH) 0;

    But in the CALLBACK WndProc() where I'm drawing, as soon as drawing begins - the background goes non-transparent (white). I've seen other freeware apps floating around that can do this - so I figure it's possible. I'd like to figure this out.

    Can anyone give me some help/direction?

    thanks


    BTW, I'm on Vista32 (if that's pertinent).
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice