Click here to Skip to main content
15,883,558 members
Articles / Database Development / SQL Server

Database Visualization

Rate me:
Please Sign up or sign in to vote.
4.60/5 (11 votes)
31 May 20067 min read 81.5K   2.8K   77  
This article aims to create a simple tool for visualizing database tables and relations, a database map to refer to.
#if !defined(AFX_SELECTCOLUMNSDLG_H__3D6FAE81_159C_431B_96A1_C7521EECA20E__INCLUDED_)
#define AFX_SELECTCOLUMNSDLG_H__3D6FAE81_159C_431B_96A1_C7521EECA20E__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CSelectColumnsDlg dialog

class CSelectColumnsDlg : public CPropertyPage
{
	DECLARE_DYNCREATE(CSelectColumnsDlg)

// Construction
public:
	CSelectColumnsDlg();
	~CSelectColumnsDlg();

	void FillTableList();
	void RetrieveColumnList(CString strTableName);
	
private:
	CComboBox			m_cmbTable;
	CComboBox			m_cmbColumn;
	CListBoxEx			m_listSelectedColumns;

// Dialog Data
	//{{AFX_DATA(CSelectColumnsDlg)
	enum { IDD = IDD_DLG_SELECT_COLUMNS };
	CListBoxExBuddy	m_btnListBoxBuddy;
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CSelectColumnsDlg)
	public:
	virtual BOOL OnSetActive();
	virtual LRESULT OnWizardNext();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CSelectColumnsDlg)
	afx_msg void OnBtnAddColumn();
	afx_msg void OnBtnClearAllSelColumns();
	//}}AFX_MSG

	afx_msg void OnSelchangeComboTable();

	DECLARE_MESSAGE_MAP()

};

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

#endif // !defined(AFX_SELECTCOLUMNSDLG_H__3D6FAE81_159C_431B_96A1_C7521EECA20E__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
Founder
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions