SetWindowText(hDlg, "Que?"); wsprintf(szBuf, diUninstall.szMessage0, ugUninstall.szDescription); SetDlgItemText(hDlg, IDC_MESSAGE0, szBuf);
NS_LoadString(hInst, IDS_DLG_REMOVE_FILE_TITLE, szBuf, MAX_BUF); SetWindowText(hDlg, szBuf); if(gszSharedFilename != NULL) SetDlgItemText(hDlg, IDC_STATIC_SHARED_FILENAME, gszSharedFilename);
LRESULT CALLBACK DlgProcWhatToDo(HWND hDlg, UINT msg, WPARAM wParam, LONG lParam){  char  szBuf[MAX_BUF];  RECT  rDlg;  switch(msg)  {    case WM_INITDIALOG:      SetWindowText(hDlg, "Que?");      wsprintf(szBuf, diUninstall.szMessage0, ugUninstall.szDescription);      SetDlgItemText(hDlg, IDC_MESSAGE0, szBuf);      if(GetClientRect(hDlg, &rDlg))        SetWindowPos(hDlg, HWND_TOP, (dwScreenX/2)-(rDlg.right/2), (dwScreenY/2)-(rDlg.bottom/2), 0, 0, SWP_NOSIZE);      break;    case WM_COMMAND:      switch(LOWORD(wParam))      {        case ID_NO:          gdwWhatToDo = WTD_NO;          DestroyWindow(hDlg);          PostQuitMessage(0);          break;        case ID_NO_TO_ALL:          gdwWhatToDo = WTD_NO_TO_ALL;          DestroyWindow(hDlg);          PostQuitMessage(0);          break;        case ID_YES:          gdwWhatToDo = WTD_YES;          DestroyWindow(hDlg);          PostQuitMessage(0);          break;        case ID_YES_TO_ALL:          gdwWhatToDo = WTD_YES_TO_ALL;          DestroyWindow(hDlg);          PostQuitMessage(0);          break;        case IDCANCEL:          gdwWhatToDo = WTD_CANCEL;          DestroyWindow(hDlg);          PostQuitMessage(0);          break;        default:          break;      }      break;  }  return(0);}