PRB: AppWizard Bug when Altering ActiveDoc Child Window Styles (214731)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q214731 SYMPTOMS
When creating an MDI Active Document Server using the AppWizard if any of the Child Frame window styles are adjusted (using the Advanced button in the wizard) a set of style flags will be generated for the CChildFrame class which includes the WS_VISIBLE flag. This causes problems when documents created by this application are loaded in an Active Document Container, such as Internet Explorer. If the ActiveDoc Server application is running when one of its documents is loaded into a container, such as Internet Explorer, the loaded document will also be visible in the server application. Otherwise, if the server application is not running and a document is loaded into a container, the server application will continue as a process after the document, or even the container, is unloaded.
CAUSE
The cause is the WS_VISIBLE flag addition to the Child Frame. Active Document Server child windows should not have this flag because their visibility is controlled by the manner in which they are instantiated.
RESOLUTION
Remove the WS_VISIBLE flag from the style group in CChildFrame::PreCreateWindow().
STATUS
Microsoft is researching this problem and will post new information when it becomes available
Modification Type: | Major | Last Reviewed: | 12/2/2003 |
---|
Keywords: | kbActiveDocs kbprb KB214731 |
---|
|