oqqsoap1234567
alexsendar
2017-02-27 10:48

win32 sdk SetWindowText()怎么在编辑框中显示内容?

20
  • win32
  • sdk

如下图,只能显示在标题栏上。怎么在图中灰色区域显示?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);

图片说明

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

3条回答