Dialog Box Obscures the Today Screen (308660)
The information in this article applies to:
- Microsoft eMbedded Visual C++, Version:4.0, when used with:
- Microsoft Windows CE Platform SDK for Pocket PC
- Microsoft Windows CE Platform SDK for Pocket PC 2002
This article was previously published under Q308660 SYMPTOMS
When you create a dialog-based application, or when you create any application whose active window is a dialog box and the parent is set to NULL, while this application is running, you cannot navigate to the Today screen.
CAUSE
If you create a modal dialog box whose parent is set to NULL, the parent is the Today screen. However, because a modal dialog box cannot navigate to its parent, a modal dialog box whose parent is NULL cannot navigate to the Today screen.
WORKAROUND
If you want the behavior to navigate to the Today screen, create a hidden window and set it as parent of the dialog box by using the following code:
CWnd wndHidden ;
wndHidden.Create(NULL,L"HIDDEN",WS_BORDER,CRect(-1,-1,0,0),NULL,1234);
CMyDialog dlg( &wndHidden );
dlg.DoModal() ;
Modification Type: | Minor | Last Reviewed: | 8/18/2005 |
---|
Keywords: | kbpending kbprb KB308660 kbAudDeveloper |
---|
|