1
我可以使用對象發送消息嗎? 喜歡的東西:MFC發送消息中的對象
myClass *myObj = new myClass();
pDlg->SendMessage(MyEvent, NULL, (LPARAM)&myObj); // Sends without any errors
...
afx_msg LRESULT MyApp::GetEvent(WPARAM wParam, LPARAM lParam)
{
myClass *zxc = new myClass();
zxc = lParam; // Something like this... but doesn't work
}
myClass的* zxc =(myClass)lParam; – 2013-05-13 19:38:29
非常感謝您的幫助!它工作得很好 – FireForce 2013-05-13 19:39:45