The MessageBox function returns an incorrect value when you click either "Continue" or "Try Again" in a MessageBox control in Windows 2000, in Windows XP, and in Windows Server 2003 (899175)



The information in this article applies to:

  • Microsoft Windows Server 2003, Datacenter Edition
  • Microsoft Windows Server 2003, Enterprise Edition
  • Microsoft Windows Server 2003, Standard Edition
  • Microsoft Windows Server 2003, Web Edition
  • Microsoft Windows 2000 Professional
  • Microsoft Windows 2000 Server
  • Microsoft Windows XP Home Edition
  • Microsoft Windows XP Professional

SYMPTOMS

In Microsoft Windows 2000, Microsoft Windows XP, and Microsoft Windows Server 2003, when you click either Continue or Try Again in a MessageBox control, the MessageBox function returns an incorrect value.

Note The MessageBox function returns correct values when you only use the MB_CANCELTRYCONTINUE flag without using the MB_SERVICE_NOTIFICATION flag.

CAUSE

This problem occurs when you use the MB_SERVICE_NOTIFICATION|MB_CANCELTRYCONTINUE combination of flags to call the MessageBox function.

WORKAROUND

To work around this problem, use another three-button MessageBox flag. For example, use the MB_ABORTRETRYIGNORE flag together with the MB_SERVICE_NOTIFICATION flag when you call the MessageBox function.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates


Modification Type:MajorLast Reviewed:6/13/2005
Keywords:kbtshoot kbprb KB899175 kbAudDeveloper