如何在线程函数中给编辑框赋值??
急!!!

解决方案 »

  1.   

    postmessage 或者 sendmessage
    如果能取得主对话框的this指针,那就可以通过SetDlgItemText给编辑框赋值
      

  2.   

    postmessage 或者 sendmessage 
    工作者线程函数内,不能调用GUI相关的函数.
      

  3.   

    能获取到这个编辑框的句柄吗?
    能获取的话就用SetWindowText就可以了
    [Qoute]
    The SetWindowText function changes the text of the specified window's title bar (if it has one). If the specified window is a control, the text of the control is changed. However, SetWindowText cannot change the text of a control in another application.SyntaxBOOL SetWindowText(          HWND hWnd,
        LPCTSTR lpString
    );
    ParametershWnd
    [in] Handle to the window or control whose text is to be changed. 
    lpString
    [in] Pointer to a null-terminated string to be used as the new title or control text. 
    Return ValueIf the function succeeds, the return value is nonzero.If the function fails, the return value is zero. To get extended error information, call GetLastError. [/Qoute]