"Jason L. Coley" <[EMAIL PROTECTED]> wrote on 07/02/2001 
15:30:45: 
>
>Hi,
>
>I still haven't got this working yet, I still cannot send a string 
>using the SendMessage command, so can anyone help me, I need it to add 
>strings to a combo box in a properties dialog.
>
>How do I send a string as the lparam in the sendmessage command?
>
>          SendMessage(GetDlgItem(hdlg, DLG_HELPSIZE), CB_ADDSTRING, 0,
>MyString);

Have you tried:

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

--
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur!"

---------------------------------------------------------------------------
    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