Microsoft KB Archive/308660

= Dialog Box Obscures the Today Screen =

Article ID: 308660

Article Last Modified on 8/18/2005

-

APPLIES TO

 Microsoft Office Keyboard, when used with:  Microsoft Windows CE Platform Software Development Kit for Handheld PC 2000

 Microsoft Windows CE Platform Software Development Kit for Handheld PC 2000 

-



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&quot;HIDDEN&quot;,WS_BORDER,CRect(-1,-1,0,0),NULL,1234); CMyDialog dlg( &wndHidden ); dlg.DoModal ;

<div class="moreinformation_section">

Under Microsoft Foundation Classes

 * 1) The main window is itself a dialog box, and because its parent is not set, its parent is the Today screen.
 * 2) When you create any dialog box in an MFC-based application, even if the parent is set to NULL, MFC sets the parent of that dialog to the main window of the application.

Keywords: kbprb kbpending KB308660

-

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

© Microsoft Corporation. All rights reserved.