C++中如何使用sendmessage发送字符串?

2025-04-05 16:05:56
推荐回答(1个)
回答1:

char str[]="abc";
for(int i=0; i<3; i++)
{
SendMessage(hwnd, WM_CHAR, 0, (WPAMAR)str[i]);
}