解决方案 »

  1.   

    是:
    CStatic m_Time;
    m_Time.GetWindowText(); 
    吗?
    但编译不过,
    --------------------Configuration: CTI_Server - Win32 Debug--------------------
    Compiling...
    CTI_ServerDlg.cpp
    D:\CTI_SERVER_mz2\CTI_ServerDlg.cpp(827) : error C2661: 'GetWindowTextA' : no overloaded function takes 0 parameters
    Error executing cl.exe.CTI_Server.exe - 1 error(s), 0 warning(s)况且GetWindowText()还得写参数吧?
      

  2.   

    GetWindowText()是要写参数的,在你打上半边括号的时候,我相信会有提示。本来想再说上几句的,但看了你上面短短的两行代码,我知道只言片语是讲不清的。也是个机会,学学其它网友如何解答,以提高自己的表达水平!
      

  3.   

    CWnd* pWnd = GetDlgItem(IDC_MYEDIT);
    CString str;
    pWnd->GetWindowText(str);