Microsoft KB Archive/908277

= When you press the Back key on a Smartphone device, 60 seconds may elapse before the MFC dialog box fully reappears in an application that you created in Visual Studio 2005 =

Article ID: 908277

Article Last Modified on 3/14/2007

-

APPLIES TO


 * Microsoft Visual Studio 2005 Professional Edition
 * Microsoft Visual Studio 2005 Standard Edition

-





SYMPTOMS
In Microsoft Visual Studio 2005, you create an application that displays a Microsoft Foundation Classes (MFC) dialog box and that runs on a Smartphone device. When you press the Home key on the Smartphone device, the MFC dialog box is sent to the background. However, when you press the Back key on the Smartphone device, 60 seconds may elapse before the MFC dialog box fully reappears.

Typically, the application is restored in the z-order.



CAUSE
This behavior occurs because when you press the Home key, all dialog boxes are sent to the back of the z-order. When you have not registered the MFC dialog box in the back stack by using the SHSetBack function, the MFC dialog box is not restored when you press the Back key.

Note After about 60 seconds, parentless lost dialog boxes are forced to the front of the z-order.



STATUS
This behavior is by design.



MORE INFORMATION
For more information about the SHSetBack function, visit the following Microsoft Developer Network (MSDN) Web site:

http://msdn2.microsoft.com/en-us/library/aa453735.aspx

Keywords: kbtshoot kbprb KB908277

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.