Manage Vista / 7 User Frame? (WinAPI)

I noticed that Vista / 7 uses this type of management as well as Windows Live Messenger. This is a control:alt text alt text alt text

How can I add this control to a WinAPI application?

thank

+3
source share
2 answers

This resource is Bitmap 7016 in explorer.exe resources. This is a 32-bit raster map, so it has an additional alpha channel. Here's how to do it.

+4
source

This is almost what you want (but surprisingly far from it):

t := OpenThemeData(Handle, 'STARTPANEL');
DrawThemeBackground(t, Canvas.Handle, SPP_USERPICTURE, 0, rect(10, 10, 100, 100), nil);

(Delphi code, but only WinAPI functions.)

, - : http://msdn.microsoft.com/en-us/library/bb773210(VS.85).aspx

+3

Source: https://habr.com/ru/post/1750910/


All Articles