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

Visual Studio Source Code Control Provider Switcher Add-in

Rate me:
Please Sign up or sign in to vote.
4.56/5 (2 votes)
29 May 20023 min read 76.6K   975   13  
This article shows how to create a VS Add-in that allow you to change the source code control provider
#if !defined(AFX_SCCDLG_H__8A939DF6_37CF_448B_B420_0DB7C7DBF019__INCLUDED_)
#define AFX_SCCDLG_H__8A939DF6_37CF_448B_B420_0DB7C7DBF019__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SCCDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CSCCDlg dialog

class CSCCDlg : public CDialog
{
// Construction
public:
	CSCCDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CSCCDlg)
	enum { IDD = IDD_SCC_DIALOG };
	CButton	m_Apply;
	CComboBox	m_SCCCombo;
	CString	m_csCurrentSCC;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSCCDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
   CString GetCurrentSCC();

	// Generated message map functions
	//{{AFX_MSG(CSCCDlg)
	afx_msg void OnApply();
	virtual BOOL OnInitDialog();
	afx_msg void OnOptions();
	afx_msg void OnAbout();
	afx_msg void OnSelendokSccCombo();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SCCDLG_H__8A939DF6_37CF_448B_B420_0DB7C7DBF019__INCLUDED_)

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Systems Engineer
United States United States
Bassam Abdul-Baki has a Bachelor of Science (BS) degree and a Master of Science (MS) degree in Mathematics and another MS in Technology Management. He's an analyst by trade. He started out in Quality Assurance (QA) and analysis, then dabbled in Visual C++ and Visual C# programming for a while, and then came back to QA and analysis again. He's not sure where he'll be five years from now, but is looking into data analytics.

Bassam is into mathematics, technology, astronomy, archaeology, and genealogy.

Comments and Discussions