想将输入编辑栏内的字符串输出,怎么弄?
程序代码:
//能够成功显示Dialog,但是无法显示输入的字符串,希望得到帮助,没分了!好人一生平安 BOOL CALLBACK AboutDlgProcrdure(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { static HWND hWnd; static LPTSTR pszMem; switch (message) { case WM_INITDIALOG: hWnd = GetDlgItem(hDlg, IDC_EDIT1); GetWindowText(hWnd, pszMem, 100 + 1); SetWindowText(hWnd, (LPTSTR)NULL); return TRUE; case WM_COMMAND: switch (LOWORD(wParam)) { case IDOK ://按这个键输出? MessageBox(NULL, TEXT("UUU"), pszMem, 0); return 0; case IDCANCEL: EndDialog(hDlg, 0); return 0; } break; } return FALSE; }