DWORD windowFlags = SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE;
DWORD windowFlags = SWP_NOSIZE | SWP_NOACTIVATE; HWND  insertAfterHwnd;
void RepositionWindow(HWND aHwndDlg, DWORD aBannerImage){  RECT  rect;  int   iLeft, iTop;  DWORD width = -1;  DWORD height = -1;  DWORD windowFlags = SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE;  GetWindowRect(aHwndDlg, &rect);  if(aBannerImage && !gShowBannerImage)  {    RECT  rLogo;    HWND  hwndBanner;    hwndBanner = GetDlgItem(aHwndDlg, IDB_BITMAP_BANNER);    GetWindowRect(hwndBanner, &rLogo);    ShowWindow(hwndBanner, SW_HIDE);    width = rect.right;    height = rect.bottom - rLogo.bottom + rLogo.top;    windowFlags = SWP_NOZORDER | SWP_NOACTIVATE;    /* aBannerImage indicates which dialog we need to move it's dlg items     * up to fit the resized window.     */    switch(aBannerImage)    {      case BANNER_IMAGE_DOWNLOAD:        MoveDlgItem(aHwndDlg, DownloadDlgItemList, 0, -rLogo.bottom);        break;      case BANNER_IMAGE_INSTALLING:        MoveDlgItem(aHwndDlg, InstallProgressDlgItemList, 0, -rLogo.bottom);        break;      default:        break;    }  }  iLeft = (gSystemInfo.lastWindowPosCenterX - ((rect.right - rect.left) / 2));  iTop  = (gSystemInfo.lastWindowPosCenterY - ((rect.bottom - rect.top) / 2));  SetWindowPos(aHwndDlg, NULL, iLeft, iTop, width, height, windowFlags);}