--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote:
>
> > It doesn't seem to work with sendmessage but does with sendmessagestr.
> 
> Sendmessagestr handes the situation where lParam is actually a
> pointer to a string buffer for return value. 
 
> 

I think I resolved my problem and that possibly I had misdiagnosed it.
Now I think when it failed I was sending the messagestr before the
combobox existed.

However this process consistently fails with sendmessage and works
with sendmessagestr. Even though the message doesn't update the string
in the buffer the lParam must be sent as a pointer I guess. The return
is the index where the string was found; if found, processing the
message also causes that index to become the one selected in the
combobox. After processing, the content of the search string pointed
at by lParam is unchanged.

What little I know of postmessage, I think the only difference if
there were a postmessagestr would be whether or not it would send back
the return index. Hopefully it would still act on it.

However, now that its working consistently I prefer getting the return
and sendmessagestr is fine.

Regards,
Sheri

Reply via email to