To get extended error information, call GetLastError. If the function fails, the return value is zero. If the function succeeds, the return value is nonzero. Use bAlpha to determine the opacity of the layered window. This parameter can be one or more of the following values. When bAlpha is 255, the window is opaque.Īn action to be taken. When bAlpha is 0, the window is completely transparent. Similar to the SourceConstantAlpha member of the BLENDFUNCTION structure. To generate a COLORREF, use the RGB macro.Īlpha value used to describe the opacity of the layered window. All pixels painted by the window in this color will be transparent. Previous Windows versions support WS_EX_LAYERED only for top-level windows.Ī COLORREF structure that specifies the transparency color key to be used when composing the layered window. Windows 8: The WS_EX_LAYERED style is supported for top-level windows and child windows. 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. Syntax BOOL SetLayeredWindowAttributes(Ī handle to the layered window. Sets the opacity and transparency color key of a layered window.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |