G
Guest
I'm capturing WM_CREATE messages by overriding WndProc in C#/.NET.
How do I then convert the CREATESTRUCT* that GetLParam() would return to an
object that I can use in my code ?
protected override void WndProc(ref System.Windows.Forms.Message m)
{
if (m.Msg == Convert.ToInt32(WindowsMessages.WM_CREATE))
{
StringBuilder text = new StringBuilder("msg = " + m.Msg.ToString() +
"wParam=" + m.WParam.ToString() + ", lparam=" +
m.LParam.ToString());
// call m.GetLParam() - gets a pointer to CREATESTRUCT;
}
base.WndProc (ref m);
}
How do I then convert the CREATESTRUCT* that GetLParam() would return to an
object that I can use in my code ?
protected override void WndProc(ref System.Windows.Forms.Message m)
{
if (m.Msg == Convert.ToInt32(WindowsMessages.WM_CREATE))
{
StringBuilder text = new StringBuilder("msg = " + m.Msg.ToString() +
"wParam=" + m.WParam.ToString() + ", lparam=" +
m.LParam.ToString());
// call m.GetLParam() - gets a pointer to CREATESTRUCT;
}
base.WndProc (ref m);
}