Re: Passing A Float In WParam or LParam of Windows Message
- From: dzar <dzar@xxxxxxxxxxxxx>
- Date: Mon, 16 Apr 2007 08:37:56 -0500
Jeffrey Tan[MSFT] wrote:
Hi Dave,
I am not sure I understand your problem completely. Can you help to explain the following statement clearer?
"in my OnNotifyMessage override, I get a float (Single) but of the large, "integer" value it things LParam must be (but it's not, it's a 4-byte floating point value)."
Based on my experience, m.LParam is of type "IntPtr", however, it should be no problem to convert it into Single if you are sure that this message's lParam is actually float type.
What you say may be correct (I cannot verify, as I"M not in front of the C# system right now). But, yes, I do wish to treat this IntPtr as a Single (float) as that is what it is (really, it is!). I just have not found a way to do it (I am a new C# programmer, does it show?)
Thanks!
Dave
.
- Follow-Ups:
- Re: Passing A Float In WParam or LParam of Windows Message
- From: "Jeffrey Tan[MSFT]"
- Re: Passing A Float In WParam or LParam of Windows Message
- References:
- Passing A Float In WParam or LParam of Windows Message
- From: dzar
- RE: Passing A Float In WParam or LParam of Windows Message
- From: "Jeffrey Tan[MSFT]"
- Passing A Float In WParam or LParam of Windows Message
- Prev by Date: Re: alternative for VB.NET module in c#?
- Next by Date: Generics lists and cloned combobox controls
- Previous by thread: RE: Passing A Float In WParam or LParam of Windows Message
- Next by thread: Re: Passing A Float In WParam or LParam of Windows Message
- Index(es):
Relevant Pages
|