Free form

This is a discussion on Free form within the Windows Programming forums, part of the Platform Specific Boards category; Is it ossible to have free window shapes? I think of following : I got an transparent png, and now ...

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    17

    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
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    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, 04:27 PM
  2. Free Store of memory
    By George2 in forum C++ Programming
    Replies: 6
    Last Post: 11-12-2007, 01:27 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21