S
Saurabh
Hi All
I am trying to get a point from the LParam of the message by over-riding the
wndProc in my C# application. I think this is the only way to capture the
WM_NCLBUTTONUP message in .NET. Now my problem is, when I do something like,
Type t = Type.GetType("System.Object");
System.Type t1 = Type.GetType("System.Drawing.Point");
Point pt = (Point)m.GetLParam(t1);
When I execute the above code I get a valid type for t, but t1 comes as
<undefined value> which means i can't extract the point from the message m.
Is this a bug in .NET that you cannot get the type for the types which are
not in mscorlib.dll ??? thats just a guess 'coz I couldn't get the type
information for TextBox or Pens etc. Can anybody confirm this to be a bug?
Is there a fix?
The other question is, I can get a value in lparam property of the message,
Is there any way to translate this into point without using the GetLParam
method of the message?
TIA,
--Saurabh
I am trying to get a point from the LParam of the message by over-riding the
wndProc in my C# application. I think this is the only way to capture the
WM_NCLBUTTONUP message in .NET. Now my problem is, when I do something like,
Type t = Type.GetType("System.Object");
System.Type t1 = Type.GetType("System.Drawing.Point");
Point pt = (Point)m.GetLParam(t1);
When I execute the above code I get a valid type for t, but t1 comes as
<undefined value> which means i can't extract the point from the message m.
Is this a bug in .NET that you cannot get the type for the types which are
not in mscorlib.dll ??? thats just a guess 'coz I couldn't get the type
information for TextBox or Pens etc. Can anybody confirm this to be a bug?
Is there a fix?
The other question is, I can get a value in lparam property of the message,
Is there any way to translate this into point without using the GetLParam
method of the message?
TIA,
--Saurabh