Select the product you need help with
The MFC AppWizard generates incorrect toolbars and bitmapsArticle ID: 190518 - View products that this article applies to. This article was previously published under Q190518 On This PageSYMPTOMS
The MFC AppWizard (exe) has the following problems when generating
applications that do not support the Document/View architecture:
CAUSE
The MFC AppWizard uses the same toolbar bitmap for both SDI and MDI
applications that do not support the Document/View architecture. This
bitmap is also used when Context-sensitive help is selected in MFC
AppWizard step 4. This bitmap does not contain the Help toolbar image.
In the case of SDI applications, there is no File New toolbar button generated. This causes a disassociation between the toolbar buttons and their images. For example, the Help About toolbar button has the Print image on it. When Context-sensitive help is selected, the Help toolbar button has the Help About image on it. RESOLUTIONSDI Applications That Do Not Support the Document/View ArchitectureAdd a File New toolbar button by modifying the applications resource File: On the File menu, click Open, and open the applications resource file. Select <yourapp>.rc file and specify OpenAs Text. Add the following to the Toolbar section:SDI Applications Without Document/View Architecture but Support HelpMake the above modifications as well as modifying the applications toolbar bitmap. You'll need to export a bitmap from the MFC AppWizard resource DLL, which has a Help toolbar image:
MDI Applications Without Document/View Architecture but Support HelpMake the above modifications to include the Help image in your applications toolbar bitmap.STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base: 194022
(http://support.microsoft.com/kb/194022/
)
Visual Studio 6.0 service packs, what, where, why
194295
(http://support.microsoft.com/kb/194295/
)
How to tell that a Visual Studio service pack is installed
MORE INFORMATION
SDI applications that do not support the Document/View architecture do not
have File New menu support, because a Frame and View are always created
for you when the application is run. You can edit the code to include a
File New menu and handler if you like.
Steps to reproduce the behavior
REFERENCES
See the following online documentation:
190977
(http://support.microsoft.com/kb/190977/
)
BUG: Custom AppWizard generates incorrect toolbars and bitmaps
PropertiesArticle ID: 190518 - Last Review: November 21, 2006 - Revision: 3.1 APPLIES TO
|


Back to the top








