标签:blank xxxx ram ring amp tps com targe message
如果是SendMessage发送的CString
CString s = "xxxxxx";
SendMessage(hWnd,WM_XXXX,NULL,(LPARAM)&s);
消息处理函数:CString s = *((CString*)lParam);
如果使用PostMessage发送:
CString* ps = new CString("xxxxxx");
PostMessage(hWnd,WM_XXXX,NULL,(LPARAM)ps);
消息接收:
CString* ps = (CString*)lParam;
..... 消息处理
delete ps; // 清除CString, 不然会内存泄漏。
标签:blank xxxx ram ring amp tps com targe message
原文地址:http://www.cnblogs.com/profession/p/7043949.html