Click here to Skip to main content
15,896,269 members
Articles / Desktop Programming / MFC

ClassWiz: A VS.NET addin that provides a classwizard similar to that in VC++ 6.0

Rate me:
Please Sign up or sign in to vote.
4.79/5 (14 votes)
29 Jun 2003CPOL1 min read 81.6K   1.1K   28  
A VS.NET addin that provides a classwizard similar to that in VC++ 6.0
#pragma once

#include "resource.h"

// CClassWizCmdTarget command target
typedef CArray<VCProjectEngineLibrary::VCProjectPtr, VCProjectEngineLibrary::VCProject*> CVCProjectPtrArray;

class CClassWizCmdTarget : public CCmdTarget
{
	DECLARE_DYNAMIC(CClassWizCmdTarget)

public:
	CClassWizCmdTarget();
	virtual ~CClassWizCmdTarget();
	void Init(IDispatch* spDTE, IDispatch* spAddinInst);	
	void CreateCommands(CMap<_bstr_t, _bstr_t, UINT, UINT>& map, BOOL bAdd);

protected:
	DECLARE_MESSAGE_MAP()
	void GetSelectedVCProjects(CVCProjectPtrArray& arrVCProjs);

public:
	afx_msg void OnUpdateToolsClasswizard(CCmdUI *pCmdUI);
	afx_msg void OnToolsClasswizard();

private:
	//DTE
	_DTEPtr m_spDTE;
	//Addin instance
	AddInPtr m_spAddinInst;
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions