Where Are ClassWizard and WizardBar in Visual C++ .NET?[msdn]

來源:互聯網
上載者:User

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

  • See Mapping Messages to Functions.

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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.