blog

枪手亨利

博客园 首页 新随笔 联系 订阅 管理

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vcgrfWhereIsClassWizardInVisualCNET.asp
In previous versions of Visual C++, ClassWizard and WizardBar helped you develop your MFC application. ClassWizard and WizardBar have been removed in Visual C++ .NET. This topic discusses where ClassWizard and WizardBar functionality can be accessed in Visual C++.

WizardBar

To add a new class

  • In Class View or Solution Explorer, right-click the project node. On the shortcut menu, click Add and then click Add Class.

To add a function to a class

  • In Class View, right-click the class. On the shortcut menu, click Add and then click Add Function.

To go to a definition

  • Use the Navigation Bar, which is at the top of the text editor window. You can turn the Navigation Bar off from the General tab of the C/C++ folder, which is in the Text Editor folder of the Options dialog box (Tools menu).

    You can also use the Object Browser. See Searching for Symbols: Objects, Definitions and References for more information.

ClassWizard

For more information about wizards that add code to a project, see Adding Functionality with Code Wizards.

To add a member variable

  • In Class View, right-click the class to which you want to add a member variable. On the shortcut menu, click Add and then click Add Variable.

    For more information, see Adding a Member Variable.

To add a handler for a message

To add methods and properties to automation interfaces

  • In Class View, right-click an interface that supports automation. On the shortcut menu, click Add and then click Add Method or Add Property.

    For more information, see Adding a Method or Adding a Property.

To add ActiveX events

  • In Class View for an ActiveX control project, right-click the class to which you want to add an event. On the shortcut menu, click Add and then click Add Event.

    For more information, see Adding an Event.

To add a handler (function) for a user-interface item

  • Select the item in Resource View. For example, select a button. Press F4 to open the Properties window and click the ControlEvents button. Select a message in the left column and click Add from the right column. The function will appear in Class View.

    For more information, see Adding an MFC Message Handler.

See Also

Changes in MFC Versions

posted on 2006-06-22 16:05  henry  阅读(843)  评论(0编辑  收藏  举报