Article ID: 908277 - Last Review: March 14, 2007 - Revision: 1.2
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
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.
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.
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
(http://msdn2.microsoft.com/en-us/library/aa453735.aspx)
Note: This article is from Microsoft Knowledage Base
Related problems posted by other users | |
| more... |

