SendMessage API 
Author Message
 SendMessage API

I am using the SendMessage API to retrieve text so I declared the lParam
with Byval, but now I need to use SendMessage with the lParam set to
0.....but this will not work because of the Byval.  How can I declare
SendMessage so that I can do both?

Please E-mail Responses if possible




Mon, 21 Jan 2002 03:00:00 GMT  
 SendMessage API
Well, you weren't totally clear since you can send 0 ByVal. But if this
won't do, just leave the ByVal off in the declaration. You can add ByVal to
a parameter in the actual call to override the declaration.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Quote:

> I am using the SendMessage API to retrieve text so I declared the lParam
> with Byval, but now I need to use SendMessage with the lParam set to
> 0.....but this will not work because of the Byval.  How can I declare
> SendMessage so that I can do both?

> Please E-mail Responses if possible





Mon, 21 Jan 2002 03:00:00 GMT  
 SendMessage API
You can use multiple Declares, modifying each for the type of data you are
handling.

--
Tim Rude, Mighty Computer Services


(remove .NOSPAM for correct email address)

[Please reply via the newsgroup so all can benefit]

Quote:

> I am using the SendMessage API to retrieve text so I declared the lParam
> with Byval, but now I need to use SendMessage with the lParam set to
> 0.....but this will not work because of the Byval.  How can I declare
> SendMessage so that I can do both?

> Please E-mail Responses if possible





Tue, 22 Jan 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. SendMessage API Call in .NET

2. How to call the SendMessage API

3. Info about Sendmessage API

4. SENDMESSAGE api not working on win2000 server

5. SendMessage API

6. Sendmessage API and Excel97-VBA Getselcount always returns 0

7. using sendmessage api to change combo box sorted property at run time

8. Help with SendMessage API call

9. SendMessage API question

10. SendMessage API

11. Combo/List box and SendMessage API Question

12. Replace SendKeys with SendMessage API

 

 
Powered by phpBB® Forum Software