Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "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
1-38371
Alpine
2003-01-31 12:05
2003.02.13
Помогите !! Первый раз столкнулся с TChart ...


14-38466
Юрий
2003-01-30 18:59
2003.02.13
Взлом компонентов


3-38088
Relict
2003-01-27 15:25
2003.02.13
Опять запись картинок на сервер


7-38579
alex_bf
2002-12-07 06:35
2003.02.13
Загрузка Win 9x


14-38554
Stager
2003-01-27 20:58
2003.02.13
Какие стихи пишут программисты?





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский