Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Skin an Win32 Application

Tags:

c++

winapi

skin

Win32 look nasty, how to make it look better by custom skins?

I mean something like Adobe products, iTunes, Autodesk 3dsmax and Softimage XSI, Windows media player, Blender, Comodo firewall, Winamp, Babylon client, and few download managers etc.;

there are many similar applications out there but I can't find any proper tutorial or guideline, it looks like secret recipe!

only -two- tutorials available online:

old and useless: http://www.codeproject.com/Articles/20497/Draw-Skin-Window-Using-Pure-Win32-API

only cover opaque background (and this is what I avoid, I need more about GUI components): http://www.flipcode.com/archives/Win32_Window_Skinning.shtml

Is there any book or proper guideline to learn how to build skins for Win32api?

Edit: I accept David Rodríguez comment, down there ↓↓

like image 986
sysop Avatar asked Feb 09 '12 18:02

sysop


People also ask

Is Win32 obsolete?

If you need to work low level with Win32 it is far from being outdated. If you refer to the UI part alone it is not outdated but it would make sense to use some higher level library.

What is the meaning of Win32 application?

An application written for 32-bit Windows operating systems.

Is Win32 a window?

Win32 is the 32-bit application programming interface (API) for versions of Windows from 95 onwards. The API consists of functions implemented, as with Win16, in system DLLs. The core DLLs of Win32 are kernel32. dll, user32.


1 Answers

I have done this before using C++ Builder. The approach I took was to create a form, set it to be borderless and color the entire form the same color. Then I set the form transparency to this color. I then add images to the form which create the desired skin.

I'm sure this can all be done through standard win APIs, but I can't describe (or advise) doing it solely through API calls.

like image 196
Jonathan Avatar answered Oct 19 '22 22:10

Jonathan