Microsoft KB Archive/260222

{|
 * width="100%"|

BUG: PROGDLG_NOMINIMIZE Flag in IProgressDialog::StartProgressDialog Has No Effect

 * }

Q260222

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), on platform(s):
 * the operating system: Microsoft Windows 2000

-

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 this to be a bug in the Microsoft products listed at the beginning of this article.

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&quot;Testing...&quot;); pProgressDialog->SetCancelMsg(L&quot;Cancelling...&quot;,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.

Additional query words:

Keywords : kbLib kbOSWin2000bug kbSDKWin32 kbShellGrp kbDSupport

Issue type : kbbug

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch