NMCUSTOMDRAW (Structures)
Last changed: -212.98.185.92

.
Summary
Contains information specific to an NM_CUSTOMDRAW notification message.

C# Definition:

    [StructLayout(LayoutKind.Sequential)]
    struct NMCUSTOMDRAW
    {
        public NMHDR hdr;
        public int dwDrawStage;
        public IntPtr hdc;
        public RECT rc;
        public IntPtr dwItemSpec;
        public int uItemState;
        public IntPtr lItemlParam;
    }

VB Definition:

    <StructLayout(LayoutKind.Sequential)> _
    Structure NMCUSTOMDRAW
        Public hdr As NMHDR
        Public dwDrawStage As Integer
        Public hdc As IntPtr
        Public rc As RECT
        Public dwItemSpec As IntPtr
        Public uItemState As Integer
        Public lItemlParam As Integer

        Public Shared Function FromMessage(ByVal msg As Message) As NMCUSTOMDRAW
            Return DirectCast(msg.GetLParam(GetType(NMCUSTOMDRAW)), NMCUSTOMDRAW)
        End Function
    End Structure

User-Defined Field Types:

RECT, NMHDR

Notes:

None.

Documentation