 |
SetLayeredWindowAttributes Add comment W32 Constants Translate this page |
 |
 |
|
The SetLayeredWindowAttributes function sets the opacity and transparency color key of a layered window. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL SetLayeredWindowAttributes(
HWND hwnd,
COLORREF crKey,
BYTE bAlpha,
DWORD dwFlags
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER SetLayeredWindowAttributes IN user32;
INTEGER hwnd,;
INTEGER crKey,;
SHORT bAlpha,;
INTEGER dwFlags
|
 |
 |
 |
| Parameters: |
 |
hwnd
[in] Handle to the layered window.
crKey
[in] COLORREF structure that specifies the transparency color key to be used when composing the layered window.
bAlpha
[in] Alpha value used to describe the opacity of the layered window.
dwFlags
[in] Specifies an action to take: LWA_COLORKEY, LWA_ALPHA |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. |
 |
 |
| My comment: |
 |
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.


 |
 |
 |
| Word Index links for the SetLayeredWindowAttributes : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2004-07-08 15:34:53 | | Modified: | 2005-11-07 21:39:43 | Visited in last 7 days: 52 |