[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;
}
<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
None.