[StructLayout(LayoutKind.Sequential)]
struct NMCUSTOMDRAW
{
public NMHDR hdr;
public int dwDrawStage;
public IntPtr hdc;
public RECT rc;
public int dwItemSpec;
public int uItemState;
public int 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 Integer
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.