[StructLayout(LayoutKind.Sequential)]
struct NMHDR
{
public IntPtr hwndFrom;
public int idFrom;
public int code;
}
<StructLayout(LayoutKind.Sequential)> _
Structure NMHDR
Public hwndFrom As IntPtr
Public idFrom As Integer
Public code As Integer
Public Shared Function GetNotificationHeader(ByVal m As Message) As NMHDR
If m.Msg = WM.NOTIFY OrElse m.Msg = OCM.NOTIFY Then
Return DirectCast(m.GetLParam(GetType(NMHDR)), NMHDR)
Else
Return New NMHDR
End If
End Function
End Structure
None.
None.