向Static Text写入变化文字???
我是在一个线程中,
GetDlgItem(IDC_MESSAGE)-> SetWindowText( "正在格式化,请稍候...... ");
结果提示
'GetDlgItem ' : function does not take 1 parameters
error C2227: left of '-> SetWindowTextA ' must point to class/struct/union
请问如何解决???
[解决办法]
CWnd* pWnd = CWnd::FromHandle(hwnd);
if(pWnd)
{
pWnd-> GetDlgItem(IDC_MESSAGE)-> SetWindowText( "正在格式化,请稍... ");
}