private:
#define WM_SETTEXT 0x000C
void doSomethinggToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e)
{
SendMessage(this->Handle, WM_SETTEXT, (wPARAM)"Some Window Title", 0);
}
导致以下错误:
error C2065: 'wPARAM' : undeclared identifier
error C2143: syntax error : missing ')' before 'string'
error C2059: syntax error : ')'
this->Handle <--- (错误)没有从 System::IntPtr 到 HWND 的合适转换