March 1st, 2010, 08:00 AM
How to pass string using SendMessage
In my SDI application,i am trying send a custom message from dialog box to CScrollView.Along with that message i need to pass a string Value.I know how to send the String using SendMessage.But how to retrieve the string in the destination function,Bcos the parameter LPARAM is of LONG_PTR.How can i convert this into string,Here is my code..
In the Destination,
Now My string is in LPARAM,How could i access it,Can any Pls help on this,
March 1st, 2010, 08:07 AM
Re: How to pass string using SendMessage
Just cast the LPARAM pointer back to a CString pointer when you get that message.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!