Article ID: 839297 - Last Review: January 17, 2006 - Revision: 2.0 Difference between the return value of the CDialogBar::HandleInitDialog function in Visual C++ 6.0 and that in Visual C++ .NET or that in Visual C++ 2005
INTRODUCTIONIn Microsoft Visual C++ 6.0, the CDialogBar::HandleInitDialog function returns a TRUE value. In Microsoft Visual C++ .NET 2002, in Microsoft Visual C++ .NET 2003, and in Microsoft Visual C++ 2005, the return value of the CDialogBar::HandleInitDialog function in the bardlg.cpp file that is part of Microsoft Foundation Classes (MFC) class library has been changed to FALSE. MORE INFORMATIONYou can still return a TRUE value if you want. To do this, you must override the HandleInitDialog function of the CDialogBar class in the derived class, and then add your own handler for the WM_INITDIALOG message that returns the TRUE value. Your derived class code must look similar to the following code: REFERENCES
For additional information about how to override CDialogBar class functions, click the following article number to view the article in the Microsoft Knowledge Base:
185672
(http://support.microsoft.com/kb/185672/
)
HOWTO: How to initialize child controls in a derived CDialogBar
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
