Thread: Free form

  1. #1
    Registered User
    Join Date
    Jul 2003

    Free form

    Is it ossible to have free window shapes?

    I think of following :
    I got an transparent png, and now i want to only paint the area
    the png is nontransparent. When i do it in the normal way the background color of the window is painted or if i manually workout WM_ERASEBKGND it is transparent but if i move a window over the transparent window the image of the window stays there.

    I can provide links to the binary if it isnt undertandable.

  2. #2
    Join Date
    Jan 2002
    Use regions to define the shape and SetWindowRgn to apply it to your window. There's an example in this thread that may be of interest. Search this board and google for other examples.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. free() doesn't seem to work...
    By AlienJedi in forum C Programming
    Replies: 10
    Last Post: 01-29-2008, 05:27 PM
  2. Free Store of memory
    By George2 in forum C++ Programming
    Replies: 6
    Last Post: 11-12-2007, 02:27 PM