| View previous topic :: View next topic |
| Author |
Message |
jballi
Joined: 01 Oct 2005 Posts: 349 Location: Texas, USA
|
Posted: Fri Jun 13, 2008 4:10 pm Post subject: Help converting SendMessage parm from C to AHK |
|
|
I can read some C but this one has me baffled. Hopefully this is an easy one for the all of the C experts out there.
I'm trying to convert a particular lParam parameter of a SendMessage command from C to AutoHotkey. In C, the parameter is written as follows:
For example:
SendMessage(m_hWnd, LVM_SETITEMPOSITION32, nItem, (LPARAM)&pt)
I know that &pt is a pointer to a POINT structure but what the heck is the "(LPARAM)" part?
This exact parameter syntax is not unique to a single C program. I found it repeated in hundreds of programs.
Thanks in advance for your help. |
|
| Back to top |
|
 |
Guest
|
Posted: Fri Jun 13, 2008 5:05 pm Post subject: |
|
|
| (LPARAM) is just keeping the C compiler happy. Just send the &pt. |
|
| Back to top |
|
 |
jballi
Joined: 01 Oct 2005 Posts: 349 Location: Texas, USA
|
Posted: Fri Jun 13, 2008 10:46 pm Post subject: |
|
|
That's what I was afraid of. Thanks.  |
|
| Back to top |
|
 |
|