Форум: "Media";
Текущий архив: 2003.02.13;
Скачать: [xml.tar.bz2];
ВнизПрозрачная форма Найти похожие ветки
← →
Illusian Dolphin (2002-10-27 21:45) [0]Как из Delphi сделать прозрачную форму, как это делает, например, Winamp3 и многие другие проги. Слышал, что надо пользоваться
SetLayeredWindowAttributes(Handle,fmTranspPD.Color,
255,LWA_COLORKEY), но где взять эту функцию, из какой library???
← →
_cooler (2002-10-29 09:59) [1]Могу исходник закинуть на e-mail Там и посмотришь как это делается. Надо?
← →
BOA_KAA (2002-10-29 12:33) [2]Чтобы сделать прозрачную форму достаточно задать AlphaBlendValue < 255 и AlphaBlend = True. Правда, смотря для каких целей...
← →
MrAngel (2002-10-30 11:52) [3]_cooler © (29.10.02 09:59 Закинь пожалуйста мне - буду очень благодарен...
← →
Ev_genus (2002-11-01 03:52) [4]Platform SDK: Windows User Interface
SetLayeredWindowAttributes
The SetLayeredWindowAttributes function sets the opacity and transparency color key of a layered window.
BOOL SetLayeredWindowAttributes(
HWND hwnd, // handle to the layered window
COLORREF crKey, // specifies the color key
BYTE bAlpha, // value for the blend function
DWORD dwFlags // action
);
Parameters
hwnd
[in] Handle to the layered window. A layered window is created by specifying WS_EX_LAYERED when creating the window with the CreateWindowEx function or by setting WS_EX_LAYERED via SetWindowLong after the window has been created.
crKey
[in] Pointer to a COLORREF value that specifies the transparency color key to be used when composing the layered window. All pixels painted by the window in this color will be transparent. To generate a COLORREF, use the RGB macro.
bAlpha
[in] Alpha value used to describe the opacity of the layered window. Similar to the SourceConstantAlpha member of the BLENDFUNCTION structure. When bAlpha is 0, the window is completely transparent. When bAlpha is 255, the window is opaque.
dwFlags
[in] Specifies an action to take. This parameter can be one or more of the following values. Value Meaning
LWA_COLORKEY Use crKey as the transparency color.
LWA_ALPHA Use bAlpha to determine the opacity of the layered window..
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Remarks
Note that once SetLayeredWindowAttributes has been called for a layered window, subsequent UpdateLayeredWindow calls will fail until the layering style bit is cleared and set again.
Requirements
Windows NT/2000/XP: Included in Windows 2000 and later.
Windows 95/98/Me: Unsupported.
Header: Declared in Winuser.h; include Windows.h.
Library: Use User32.lib.
Страницы: 1 вся ветка
Форум: "Media";
Текущий архив: 2003.02.13;
Скачать: [xml.tar.bz2];
Память: 0.46 MB
Время: 0.009 c