As long as you are posting the message to a window of the existing process,
I don't see why you cant just convert it to a pchar.
If it is across processes and the string is more than 32bits, use a more
orthodox RPC mechanism.

Guessing rom the variable names, if you are trying to sync the htmlhelp
window to a string context ID, there is an API call to do it I believe.


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Jason L. Coley
Sent: Tuesday, January 30, 2001 3:12 PM
To: Multiple recipients of list delphi
Subject: [DUG]: SendMessage and strings


How do I send a string as the lparam in the sendmessage command?

          SendMessage(GetDlgItem(hdlg, DLG_HELPSIZE), CB_ADDSTRING, 0,
MyString);

Regards
>Jason Coley
>Manawatu Software Solutions
>http://www.software-solutions.co.nz
<http://www.software-solutions.co.nz/>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to