vc++ SendMessage和WM_SETTEXT问题.

2025-02-21 22:01:20
推荐回答(1个)
回答1:

::SendMessage(Ahwnd,WM_SETTEXT,0,_T("hehe"));

参数错啦~第三个参数无用, 第四个才是c字符串~
wParam
This parameter is not used.
lParam
Pointer to a null-terminated string that is the window text.