Thread: Good News about skinning windows!

  1. #1
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005

    Thumbs up Good News about skinning windows!

    When I asked about making skinned windows, I was given a link to a zip file with tons of script (uses regions). And every one else was given similar links to similar script. That is all a waste. Just make your window with WS_EX_LAYERED and use SetLayeredWindowAttributes() to make a color of your choice completely transparent. A lot easier and tons of less script.

  2. #2
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    SetLayeredWindowAttributes is unsupported on Windows 95/98/Me, which is why most people use regions.

  3. #3
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Maes said in 2001:
    I had a similar question a while a go and Zen pointed me to layered windows. Regions are a bit out of date. they are slow, only let you use transparency and you lose system performence. If you use win2k or XP you can use the style WS_EX_LAYERED and ad transluceny and stuff. Maybe you can also use it on win98 because the MS office agent was made like that (according to the link above)
    Ken Fitlike said in 2004:
    For a minimum operating system of windows 2000, you can always use SetLayeredWindowAttributes to create a non-rectangular window, setting the bAlpha parameter to the transparent colour of whatever bitmap/image you intend to use and the dwFlags parameter to LWA_COLORKEY. The window needs to have the WS_EX_LAYERED extended window style.
    I think the moral of this story is that it is worthwhile searching these forums.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Anyone know a good tutorial on windows sockets?
    By Xoid in forum C Programming
    Replies: 1
    Last Post: 06-21-2003, 08:41 AM
  2. Good books to learn windows programming?
    By RetroGamer1991 in forum Windows Programming
    Replies: 4
    Last Post: 06-17-2003, 01:06 PM
  3. i need to know a good book on windows programming with c
    By datainjector in forum Windows Programming
    Replies: 1
    Last Post: 06-28-2002, 01:35 AM
  4. Good Windows Tutorials
    By BubbleMan in forum Windows Programming
    Replies: 1
    Last Post: 08-17-2001, 02:23 AM
  5. Is there a good tutorial for Windows programming??
    By BubbleMan in forum Windows Programming
    Replies: 3
    Last Post: 08-16-2001, 03:49 PM