SendMessage(GetDlgItem(hDlg, IDC_PROGRESS), PBM_SETRANGE, 0, MAKELPARAM(0, 100));
SendDlgItemMessage(hDlg, IDC_PROGRESS, PBM_SETRANGE, 0, MAKELPARAM(0, 100));
InitDialog(HWND hDlg){  char filename[MAX_PATH];  if (!GetStringsFile(filename))    return;  SetItemText(hDlg, "Title", filename);  SetItemText(GetDlgItem(hDlg, IDC_INFO), "Info", filename);  // Set dialog icon  HICON hIcon = LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_DIALOG));  if (hIcon)    SendMessage(hDlg, WM_SETICON, ICON_BIG, (LPARAM) hIcon);  SendMessage(GetDlgItem(hDlg, IDC_PROGRESS), PBM_SETRANGE, 0,              MAKELPARAM(0, 100));  CenterDialog(hDlg);  // make dialog appear in the center of the screen  SetTimer(hDlg, TIMER_ID, TIMER_INTERVAL, NULL);}