如下图,只能显示在标题栏上。怎么在图中灰色区域显示?getDlgItem()为什么返回0?
hWndDialogBox = CreateDialog((HINSTANCE) GetWindowLong(hWnd, GWL_HINSTANCE), MAKEINTRESOURCE(IDD_DIALOG), hWnd, (DLGPROC)DeleteItemProc);
HWND hWnd = GetDlgItem(hWndDialogBox, IDD_DIALOG);
CString Buff("hhh");
SetWindowText(hWndDialogBox, Buff);
ShowWindow(hWndDialogBox, SW_SHOW);