Home » FAQ » WinForms » Win32 » How do I convert LParam in a message from IntPtr to the Win32 type
Define the struct you want, for example RECT
struct RECT { public int left, top, right, bottom; }
Then use the Message.GetLPAram method
RECT rc = (RECT)m.GetLParam( typeof(RECT) );
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with