輸入資料(Edit Control)

賦値:

GetDlgItem(IDC_EDIT1)->SetWindowText( _T"FOO" )

取値:

CString str;
GetDlgItem(IDC_EDIT1)->GetWindowText(str)

 

顯現內容(Static Text)

設置内容
CWnd* pWnd = GetDlgItem(IDC_MYStaic); 
pWnd->SetWindowText(_T("Hockey is best!"));   
得到内容: 
CString str; 
pWnd->GetWindowText(str);

 

arrow
arrow
    全站熱搜

    阿洲 發表在 痞客邦 留言(0) 人氣()