Skip to content

Latest commit

 

History

History
193 lines (138 loc) · 6.33 KB

ns-winuser-updatelayeredwindowinfo.md

File metadata and controls

193 lines (138 loc) · 6.33 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:winuser.tagUPDATELAYEREDWINDOWINFO
UPDATELAYEREDWINDOWINFO (winuser.h)
Used by UpdateLayeredWindowIndirect to provide position, size, shape, content, and translucency information for a layered window.
*PUPDATELAYEREDWINDOWINFO
PUPDATELAYEREDWINDOWINFO
PUPDATELAYEREDWINDOWINFO structure pointer [Windows and Messages]
ULW_ALPHA
ULW_COLORKEY
ULW_EX_NORESIZE
ULW_OPAQUE
UPDATELAYEREDWINDOWINFO
UPDATELAYEREDWINDOWINFO structure [Windows and Messages]
_win32_UPDATELAYEREDWINDOWINFO
_win32_updatelayeredwindowinfo_cpp
winmsg.updatelayeredwindowinfo
winui._win32_updatelayeredwindowinfo
winuser/PUPDATELAYEREDWINDOWINFO
winuser/UPDATELAYEREDWINDOWINFO
winmsg\updatelayeredwindowinfo.htm
winmsg
VS|winui|~\winui\windowsuserinterface\windowing\windows\windowreference\windowstructures\updatelayeredwindowinfo.htm
12/05/2018
*PUPDATELAYEREDWINDOWINFO, PUPDATELAYEREDWINDOWINFO, PUPDATELAYEREDWINDOWINFO structure pointer [Windows and Messages], ULW_ALPHA, ULW_COLORKEY, ULW_EX_NORESIZE, ULW_OPAQUE, UPDATELAYEREDWINDOWINFO, UPDATELAYEREDWINDOWINFO structure [Windows and Messages], _win32_UPDATELAYEREDWINDOWINFO, _win32_updatelayeredwindowinfo_cpp, winmsg.updatelayeredwindowinfo, winui._win32_updatelayeredwindowinfo, winuser/PUPDATELAYEREDWINDOWINFO, winuser/UPDATELAYEREDWINDOWINFO
winuser.h
Windows.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Windows
UPDATELAYEREDWINDOWINFO, *PUPDATELAYEREDWINDOWINFO
19H1
tagUPDATELAYEREDWINDOWINFO
winuser/tagUPDATELAYEREDWINDOWINFO
PUPDATELAYEREDWINDOWINFO
winuser/PUPDATELAYEREDWINDOWINFO
UPDATELAYEREDWINDOWINFO
winuser/UPDATELAYEREDWINDOWINFO
c++
APIRef
kbSyntax
HeaderDef
Winuser.h
UPDATELAYEREDWINDOWINFO

UPDATELAYEREDWINDOWINFO structure

-description

Used by UpdateLayeredWindowIndirect to provide position, size, shape, content, and translucency information for a layered window.

-struct-fields

-field cbSize

Type: DWORD

The size, in bytes, of this structure.

-field hdcDst

Type: HDC

A handle to a DC for the screen. This handle is obtained by specifying NULL in this member when calling UpdateLayeredWindowIndirect. The handle is used for palette color matching when the window contents are updated. If hdcDst is NULL, the default palette is used.

If hdcSrc is NULL, hdcDst must be NULL.

-field pptDst

Type: const POINT*

The new screen position of the layered window. If the new position is unchanged from the current position, pptDst can be NULL.

-field psize

Type: const SIZE*

The new size of the layered window. If the size of the window will not change, this parameter can be NULL. If hdcSrc is NULL, psize must be NULL.

-field hdcSrc

Type: HDC

A handle to the DC for the surface that defines the layered window. This handle can be obtained by calling the CreateCompatibleDC function. If the shape and visual context of the window will not change, hdcSrc can be NULL.

-field pptSrc

Type: const POINT*

The location of the layer in the device context. If hdcSrc is NULL, pptSrc should be NULL.

-field crKey

Type: COLORREF

The color key to be used when composing the layered window. To generate a COLORREF, use the RGB macro.

-field pblend

Type: const BLENDFUNCTION*

The transparency value to be used when composing the layered window.

-field dwFlags

Type: DWORD

This parameter can be one of the following values.

Value Meaning
ULW_ALPHA
0x00000002
Use pblend as the blend function. If the display mode is 256 colors or less, the effect of this value is the same as the effect of ULW_OPAQUE.
ULW_COLORKEY
0x00000001
Use crKey as the transparency color.
ULW_OPAQUE
0x00000004
Draw an opaque layered window.
ULW_EX_NORESIZE
0x00000008
Force the UpdateLayeredWindowIndirect function to fail if the current window size does not match the size specified in the psize.
 

If hdcSrc is NULL, dwFlags should be zero.

-field prcDirty

Type: const RECT*

The area to be updated. This parameter can be NULL. If it is non-NULL, only the area in this rectangle is updated from the source DC.

-see-also

Conceptual

Reference

UpdateLayeredWindow

Window Features