BUG: PROGDLG_NOMINIMIZE Flag in IProgressDialog::StartProgressDialog() Has No Effect (260222)



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0, when used with:
    • the operating system: Microsoft Windows 2000

This article was previously published under Q260222

SYMPTOMS

When you call the IProgressDialog::StartProgressDialog function with the PROGDLG_NOMINIMIZE flag, the dialog box that is created should not have the minimize box displayed in the dialog box's caption. However, there is a bug that prevents the minimize button from being removed.

CAUSE

This behavior is due to a bug in Windows 2000.

RESOLUTION

You cannot work around this bug by using the IProgressDialog interface.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce Behavior

You can duplicate this bug by running the following code on a Windows 2000-based computer:
CoInitialize(NULL);

IProgressDialog *pProgressDialog;

CoCreateInstance( CLSID_ProgressDialog,
                  NULL,
                  CLSCTX_ALL,
                  IID_IProgressDialog,
                  (LPVOID*)&pProgressDialog);

pProgressDialog->SetTitle(L"Testing...");
pProgressDialog->SetCancelMsg(L"Cancelling...",NULL);

pProgressDialog->StartProgressDialog(NULL, NULL, PROGDLG_NOMINIMIZE, NULL);

Sleep(100);

int i;
for(i=0;i<100;i++)
   {
   if(pProgressDialog->HasUserCancelled())
      break;
   pProgressDialog->SetProgress(i,100);
   Sleep(100);
   }

pProgressDialog->StopProgressDialog();

pProgressDialog->Release();

CoUninitialize();
				
When this code is run, the dialog box has the minimize box displayed in the caption.

Modification Type:MinorLast Reviewed:7/11/2005
Keywords:kbBug kbShellGrp KB260222