[英]help with the edit box/Input Box
我創建了一個帶有標簽和編輯框的簡單對話框,然后創建了一個類CInputDlg,為標簽和編輯框添加了成員變量,然后將其命名為
CInputDlg dialog
dialog.m_label = TEXT("Enter a number:");
if (dialog.DoModal() == IDOK) {
// Do something
}
現在如何顯示輸入到編輯框中的文本?
在對話框上的“確定”按鈕的“處理程序”中,您應該獲取TextBox.GetText(),並將其放回到公共CString成員m_InputString中。 然后,從調用函數中,可以讀取dialog.m_InputString。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.