Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

CButtonSSL

, 4 Dec 2001 CPOL
An owner-drawn, flat, menu button that correctly handles the default state
buttonssl_demo.zip
SSLButtonExTest.dsp
SSLButtonExTest.dsw
res
bitmap1.bmp
bitmap2.bmp
bitmap3.bmp
bitmap4.bmp
bitmap5.bmp
Hand.cur
icon1.ico
icon2.ico
icon3.ico
icon4.ico
SSLButtonExTest.ico
tick.bmp
vssver.scc
buttonssl_doc.zip
demo.gif
inherit.gif
buttonssl_src.zip
// CButtonSSLTestDlg.cpp : implementation file
//

#include "stdafx.h"
#include "SSLButtonExTest.h"
#include "SSLButtonExTestDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App About

class CAboutDlg : public CDialog
{
public:
	CAboutDlg();

// Dialog Data
	//{{AFX_DATA(CAboutDlg)
	enum { IDD = IDD_ABOUTBOX };
	//}}AFX_DATA

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

// Implementation
protected:
	//{{AFX_MSG(CAboutDlg)
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
	//{{AFX_DATA_INIT(CAboutDlg)
	//}}AFX_DATA_INIT
}

void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CAboutDlg)
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
	//{{AFX_MSG_MAP(CAboutDlg)
		// No message handlers
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSSLButtonExTestDlg dialog

CSSLButtonExTestDlg::CSSLButtonExTestDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CSSLButtonExTestDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSSLButtonExTestDlg)
	m_bFlat = TRUE;
	m_bMenu = TRUE;
	m_nVAlign = 2;
	m_nHAlign = 1;
	m_bEnabled = TRUE;
	m_nImgHAlign = 1;
	m_nImgVAlign = 0;
	m_bAutoSize = FALSE;
	//}}AFX_DATA_INIT
	// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
	m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}

void CSSLButtonExTestDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSSLButtonExTestDlg)
	DDX_Control(pDX, IDC_RADIO_LEFT, m_sslRadioLeft);
	DDX_Control(pDX, IDC_RADIO_CENTER, m_sslRadioCenter);
	DDX_Control(pDX, IDC_RADIO_RIGHT, m_sslRadioRight);
	DDX_Control(pDX, IDC_CHECK_ENABLE, m_checkEnable);
	DDX_Control(pDX, IDC_BUTTON1, m_btnTest);
	DDX_Check(pDX, IDC_CHECK_FLAT, m_bFlat);
	DDX_Check(pDX, IDC_CHECK_MENU, m_bMenu);
	DDX_Radio(pDX, IDC_RADIO_TOP, m_nVAlign);
	DDX_Radio(pDX, IDC_RADIO_LEFT, m_nHAlign);
	DDX_Check(pDX, IDC_CHECK_ENABLE, m_bEnabled);
	DDX_Radio(pDX, IDC_RADIO_LEFT2, m_nImgHAlign);
	DDX_Radio(pDX, IDC_RADIO_TOP2, m_nImgVAlign);
	DDX_Check(pDX, IDC_CHECK_AUTOSIZE, m_bAutoSize);
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CSSLButtonExTestDlg, CDialog)
	//{{AFX_MSG_MAP(CSSLButtonExTestDlg)
	ON_WM_SYSCOMMAND()
	ON_WM_PAINT()
	ON_WM_QUERYDRAGICON()
	ON_BN_CLICKED(IDC_CHECK_FLAT, OnCheckFlat)
	ON_BN_CLICKED(IDC_CHECK_MENU, OnCheckMenu)
	ON_BN_CLICKED(IDC_RADIO_LEFT, OnRadioLeft)
	ON_BN_CLICKED(IDC_RADIO_RIGHT, OnRadioRight)
	ON_BN_CLICKED(IDC_RADIO_CENTER, OnRadioCenter)
	ON_BN_CLICKED(IDC_RADIO_TOP, OnRadioTop)
	ON_BN_CLICKED(IDC_RADIO_MIDDLE, OnRadioMiddle)
	ON_BN_CLICKED(IDC_RADIO_BOTTOM, OnRadioBottom)
	ON_BN_CLICKED(IDC_CHECK_ENABLE, OnCheckEnable)
	ON_BN_CLICKED(IDC_RADIO_CENTER2, OnRadioCenter2)
	ON_BN_CLICKED(IDC_RADIO_LEFT2, OnRadioLeft2)
	ON_BN_CLICKED(IDC_RADIO_MIDDLE2, OnRadioMiddle2)
	ON_BN_CLICKED(IDC_RADIO_RIGHT2, OnRadioRight2)
	ON_BN_CLICKED(IDC_RADIO_TOP2, OnRadioTop2)
	ON_BN_CLICKED(IDC_RADIO_BOTTOM2, OnRadioBottom2)
	ON_BN_CLICKED(IDC_RADIO_BOTTOM, OnRadioBottom)
	ON_BN_CLICKED(IDC_CHECK_AUTOSIZE, OnCheckAutosize)
	//}}AFX_MSG_MAP
    ON_COMMAND(ID_OPTIONS_FLATBUTTON, OnFlatButton)
    ON_COMMAND(ID_OPTIONS_MENUBUTTON, OnMenuButton)
    ON_COMMAND(ID_OPTIONS_AUTOSIZE, OnAutoSize)
    ON_COMMAND(ID_OPTIONS_TEXTALIGNMENT_LEFT, OnTextLeft)
    ON_COMMAND(ID_OPTIONS_TEXTALIGNMENT_CENTRE, OnTextCentre)
    ON_COMMAND(ID_OPTIONS_TEXTALIGNMENT_RIGHT, OnTextRight)
    ON_COMMAND(ID_OPTIONS_TEXTALIGNMENT_TOP, OnTextTop)
    ON_COMMAND(ID_OPTIONS_TEXTALIGNMENT_MIDDLE, OnTextMiddle)
    ON_COMMAND(ID_OPTIONS_TEXTALIGNMENT_BOTTOM, OnTextBottom)
    ON_COMMAND(ID_OPTIONS_IMAGEALIGNMENT_LEFT, OnImageLeft)
    ON_COMMAND(ID_OPTIONS_IMAGEALIGNMENT_CENTRE, OnImageCentre)
    ON_COMMAND(ID_OPTIONS_IMAGEALIGNMENT_RIGHT, OnImageRight)
    ON_COMMAND(ID_OPTIONS_IMAGEALIGNMENT_TOP, OnImageTop)
    ON_COMMAND(ID_OPTIONS_IMAGEALIGNMENT_MIDDLE, OnImageMiddle)
    ON_COMMAND(ID_OPTIONS_IMAGEALIGNMENT_BOTTOM, OnImageBottom)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSSLButtonExTestDlg message handlers

BOOL CSSLButtonExTestDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	// Add "About..." menu item to system menu.

	// IDM_ABOUTBOX must be in the system command range.
	ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
	ASSERT(IDM_ABOUTBOX < 0xF000);

	CMenu* pSysMenu = GetSystemMenu(FALSE);
	if (pSysMenu != NULL)
	{
		CString strAboutMenu;
		strAboutMenu.LoadString(IDS_ABOUTBOX);
		if (!strAboutMenu.IsEmpty())
		{
			pSysMenu->AppendMenu(MF_SEPARATOR);
			pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
		}
	}

	// Set the icon for this dialog.  The framework does this automatically
	//  when the application's main window is not a dialog
	SetIcon(m_hIcon, TRUE);			// Set big icon
	SetIcon(m_hIcon, FALSE);		// Set small icon
	
	m_btnTest.SetSSLButtonIcons (IDI_ICON1, IDI_ICON2, IDI_ICON3, IDI_ICON4);
//	m_btnTest.SetSSLButtonMenu (IDR_MENU1);
    m_btnTest.SetSSLButtonMenu (IDR_MENU_OPTIONS);
    m_btnTest.CheckSSLMenuRadioItem (ID_OPTIONS_TEXTALIGNMENT_LEFT,
                                     ID_OPTIONS_TEXTALIGNMENT_RIGHT,
                                     ID_OPTIONS_TEXTALIGNMENT_CENTRE,
                                     MF_BYCOMMAND);
    m_btnTest.CheckSSLMenuRadioItem (ID_OPTIONS_TEXTALIGNMENT_TOP,
                                     ID_OPTIONS_TEXTALIGNMENT_BOTTOM,
                                     ID_OPTIONS_TEXTALIGNMENT_BOTTOM,
                                     MF_BYCOMMAND);
    m_btnTest.CheckSSLMenuRadioItem (ID_OPTIONS_IMAGEALIGNMENT_LEFT,
                                     ID_OPTIONS_IMAGEALIGNMENT_RIGHT,
                                     ID_OPTIONS_IMAGEALIGNMENT_CENTRE,
                                     MF_BYCOMMAND);
    m_btnTest.CheckSSLMenuRadioItem (ID_OPTIONS_IMAGEALIGNMENT_TOP,
                                     ID_OPTIONS_IMAGEALIGNMENT_BOTTOM,
                                     ID_OPTIONS_IMAGEALIGNMENT_TOP,
                                     MF_BYCOMMAND);
    m_btnTest.CheckSSLMenuItem (ID_OPTIONS_FLATBUTTON);
    m_btnTest.CheckSSLMenuItem (ID_OPTIONS_MENUBUTTON);
	m_btnTest.SetSSLButtonToolTip (IDS_STRING102);
	m_btnTest.SetSSLButtonURL (_T("mailto:derek_lakin@lineone.net"));
	COLORREF crCaption = ::GetSysColor (COLOR_ACTIVECAPTION);
	m_btnTest.SetSSLColor (CButtonSSL::SSL_UP_TEXT_COLOR, RGB (0, 0, 255));
	m_btnTest.SetSSLColor (CButtonSSL::SSL_OVER_TEXT_COLOR, RGB (0, 0, 255));
	m_btnTest.SetSSLColor (CButtonSSL::SSL_DOWN_TEXT_COLOR, RGB (0, 0, 255));
	m_btnTest.SetSSLButtonFont (_T("Verdana"), 8, TRUE);
	m_btnTest.SetSSLTextAlign (SSL_TEXT_CENTER | SSL_TEXT_BOTTOM);
	m_btnTest.SetSSLImageAlign (SSL_IMAGE_TOP | SSL_IMAGE_CENTER);

    m_checkEnable.SetSSLButtonBitmaps (IDB_CROSS, RGB (255, 255, 255), 0, 0, IDB_TICK, RGB (255, 255, 255));
	
    m_sslRadioLeft.SetSSLButtonBitmaps (IDB_CROSS, RGB (255, 255, 255), 0, 0, IDB_TICK, RGB (255, 255, 255));
    m_sslRadioLeft.SetSSLTextAlign (SSL_TEXT_RIGHT | SSL_TEXT_VCENTER);
	m_sslRadioCenter.SetSSLButtonBitmaps (IDB_CROSS, RGB (255, 255, 255), 0, 0, IDB_TICK, RGB (255, 255, 255));
    m_sslRadioCenter.SetSSLTextAlign (SSL_TEXT_RIGHT | SSL_TEXT_VCENTER);
	m_sslRadioRight.SetSSLButtonBitmaps (IDB_CROSS, RGB (255, 255, 255), 0, 0, IDB_TICK, RGB (255, 255, 255));
    m_sslRadioRight.SetSSLTextAlign (SSL_TEXT_RIGHT | SSL_TEXT_VCENTER);
	
	return TRUE;  // return TRUE  unless you set the focus to a control
}

void CSSLButtonExTestDlg::OnSysCommand(UINT nID, LPARAM lParam)
{
	if ((nID & 0xFFF0) == IDM_ABOUTBOX)
	{
		CAboutDlg dlgAbout;
		dlgAbout.DoModal();
	}
	else
	{
		CDialog::OnSysCommand(nID, lParam);
	}
}

// If you add a minimize button to your dialog, you will need the code below
//  to draw the icon.  For MFC applications using the document/view model,
//  this is automatically done for you by the framework.

void CSSLButtonExTestDlg::OnPaint() 
{
	if (IsIconic())
	{
		CPaintDC dc(this); // device context for painting

		SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0);

		// Center icon in client rectangle
		int cxIcon = GetSystemMetrics(SM_CXICON);
		int cyIcon = GetSystemMetrics(SM_CYICON);
		CRect rect;
		GetClientRect(&rect);
		int x = (rect.Width() - cxIcon + 1) / 2;
		int y = (rect.Height() - cyIcon + 1) / 2;

		// Draw the icon
		dc.DrawIcon(x, y, m_hIcon);
	}
	else
	{
		CDialog::OnPaint();
	}
}

// The system calls this to obtain the cursor to display while the user drags
//  the minimized window.
HCURSOR CSSLButtonExTestDlg::OnQueryDragIcon()
{
	return (HCURSOR) m_hIcon;
}

void CSSLButtonExTestDlg::OnCheckFlat() 
{
	UpdateData (TRUE);
	if (TRUE == m_bFlat) {
		m_btnTest.SetSSLButtonStyle (m_btnTest.GetSSLButtonStyle () | SSL_BS_FLAT);
        m_btnTest.CheckSSLMenuItem (ID_OPTIONS_FLATBUTTON);
	}
	else {
		m_btnTest.SetSSLButtonStyle (m_btnTest.GetSSLButtonStyle () & ~SSL_BS_FLAT);
        m_btnTest.CheckSSLMenuItem (ID_OPTIONS_FLATBUTTON, MF_UNCHECKED);
	}
}

void CSSLButtonExTestDlg::OnCheckMenu() 
{
	UpdateData (TRUE);
	if (TRUE == m_bMenu) {
		m_btnTest.SetSSLButtonStyle (m_btnTest.GetSSLButtonStyle () | SSL_BS_MENU_BTN);
        m_btnTest.CheckSSLMenuItem (ID_OPTIONS_MENUBUTTON);
	}
	else {
		m_btnTest.SetSSLButtonStyle (m_btnTest.GetSSLButtonStyle () & ~SSL_BS_MENU_BTN);
        m_btnTest.CheckSSLMenuItem (ID_OPTIONS_MENUBUTTON, MF_UNCHECKED);
	}
}

void CSSLButtonExTestDlg::OnCheckAutosize() 
{
	UpdateData (TRUE);
	if (TRUE == m_bAutoSize) {
		m_btnTest.SetSSLButtonStyle (m_btnTest.GetSSLButtonStyle () | SSL_BS_AUTOSIZE);
        m_btnTest.CheckSSLMenuItem (ID_OPTIONS_AUTOSIZE);
	}
	else {
		m_btnTest.SetSSLButtonStyle (m_btnTest.GetSSLButtonStyle () & ~SSL_BS_AUTOSIZE);
        m_btnTest.CheckSSLMenuItem (ID_OPTIONS_AUTOSIZE, MF_UNCHECKED);
	}
}

void CSSLButtonExTestDlg::OnRadioLeft() 
{
	UpdateData (TRUE);
	SetTextAlign ();
}

void CSSLButtonExTestDlg::OnRadioRight() 
{
	UpdateData (TRUE);
	SetTextAlign ();
}

void CSSLButtonExTestDlg::OnRadioCenter() 
{
	UpdateData (TRUE);
	SetTextAlign ();
}

void CSSLButtonExTestDlg::OnRadioTop() 
{
	UpdateData (TRUE);
	SetTextAlign ();
}

void CSSLButtonExTestDlg::OnRadioMiddle() 
{
	UpdateData (TRUE);
	SetTextAlign ();
}

void CSSLButtonExTestDlg::OnRadioBottom() 
{
	UpdateData (TRUE);
	SetTextAlign ();
}

void CSSLButtonExTestDlg::SetTextAlign()
{
	UINT hAlign = 0;
    UINT nID = ID_OPTIONS_TEXTALIGNMENT_LEFT;
	if (0 == m_nHAlign) {
		hAlign = SSL_TEXT_LEFT;
        nID = ID_OPTIONS_TEXTALIGNMENT_LEFT;
	}
	if (1 == m_nHAlign) {
		hAlign = SSL_TEXT_CENTER;
        nID = ID_OPTIONS_TEXTALIGNMENT_CENTRE;
	}
	if (2 == m_nHAlign) {
		hAlign = SSL_TEXT_RIGHT;
        nID = ID_OPTIONS_TEXTALIGNMENT_RIGHT;
	}
    m_btnTest.CheckSSLMenuRadioItem (ID_OPTIONS_TEXTALIGNMENT_LEFT,
                                     ID_OPTIONS_TEXTALIGNMENT_RIGHT,
                                     nID,
                                     MF_BYCOMMAND);
	UINT vAlign = 0;
    nID = ID_OPTIONS_TEXTALIGNMENT_TOP;
	if (0 == m_nVAlign) {
		vAlign = SSL_TEXT_TOP;
        nID = ID_OPTIONS_TEXTALIGNMENT_TOP;
	}
	if (1 == m_nVAlign) {
		vAlign = SSL_TEXT_VCENTER;
        nID = ID_OPTIONS_TEXTALIGNMENT_MIDDLE;
	}
	if (2 == m_nVAlign) {
		vAlign = SSL_TEXT_BOTTOM;
        nID = ID_OPTIONS_TEXTALIGNMENT_BOTTOM;
	}
    m_btnTest.CheckSSLMenuRadioItem (ID_OPTIONS_TEXTALIGNMENT_TOP,
                                     ID_OPTIONS_TEXTALIGNMENT_BOTTOM,
                                     nID,
                                     MF_BYCOMMAND);
	m_btnTest.SetSSLTextAlign (hAlign | vAlign);
}

void CSSLButtonExTestDlg::SetImageAlign()
{
	UINT hAlign = 0;
    UINT nID = ID_OPTIONS_IMAGEALIGNMENT_LEFT;
	if (0 == m_nImgHAlign) {
		hAlign = SSL_IMAGE_LEFT;
        nID = ID_OPTIONS_IMAGEALIGNMENT_LEFT;
	}
	if (1 == m_nImgHAlign) {
		hAlign = SSL_IMAGE_CENTER;
        nID = ID_OPTIONS_IMAGEALIGNMENT_CENTRE;
	}
	if (2 == m_nImgHAlign) {
		hAlign = SSL_IMAGE_RIGHT;
        nID = ID_OPTIONS_IMAGEALIGNMENT_RIGHT;
	}
    m_btnTest.CheckSSLMenuRadioItem (ID_OPTIONS_IMAGEALIGNMENT_LEFT,
                                     ID_OPTIONS_IMAGEALIGNMENT_RIGHT,
                                     nID,
                                     MF_BYCOMMAND);
	UINT vAlign = 0;
    nID = ID_OPTIONS_IMAGEALIGNMENT_TOP;
	if (0 == m_nImgVAlign) {
		vAlign = SSL_IMAGE_TOP;
        nID = ID_OPTIONS_IMAGEALIGNMENT_TOP;
	}
	if (1 == m_nImgVAlign) {
		vAlign = SSL_IMAGE_VCENTER;
        nID = ID_OPTIONS_IMAGEALIGNMENT_MIDDLE;
	}
	if (2 == m_nImgVAlign) {
		vAlign = SSL_IMAGE_BOTTOM;
        nID = ID_OPTIONS_IMAGEALIGNMENT_BOTTOM;
	}
    m_btnTest.CheckSSLMenuRadioItem (ID_OPTIONS_IMAGEALIGNMENT_TOP,
                                     ID_OPTIONS_IMAGEALIGNMENT_BOTTOM,
                                     nID,
                                     MF_BYCOMMAND);
	m_btnTest.SetSSLImageAlign (hAlign | vAlign);
}

void CSSLButtonExTestDlg::OnCheckEnable() 
{
	UpdateData (TRUE);
	m_btnTest.EnableWindow (m_bEnabled);
}

void CSSLButtonExTestDlg::OnRadioCenter2() 
{
	UpdateData (TRUE);
	SetImageAlign ();
}

void CSSLButtonExTestDlg::OnRadioLeft2() 
{
	UpdateData (TRUE);
	SetImageAlign ();
}

void CSSLButtonExTestDlg::OnRadioMiddle2() 
{
	UpdateData (TRUE);
	SetImageAlign ();
}

void CSSLButtonExTestDlg::OnRadioRight2() 
{
	UpdateData (TRUE);
	SetImageAlign ();
}

void CSSLButtonExTestDlg::OnRadioTop2() 
{
	UpdateData (TRUE);
	SetImageAlign ();
}

void CSSLButtonExTestDlg::OnRadioBottom2() 
{
	UpdateData (TRUE);
	SetImageAlign ();
}

void CSSLButtonExTestDlg::OnFlatButton () {
    m_bFlat = !m_bFlat;
    UpdateData (FALSE);
    OnCheckFlat ();
}

void CSSLButtonExTestDlg::OnMenuButton () {
    m_bMenu = !m_bMenu;
    UpdateData (FALSE);
    OnCheckMenu ();
}

void CSSLButtonExTestDlg::OnAutoSize () {
    m_bAutoSize = !m_bAutoSize;
    UpdateData (FALSE);
    OnCheckAutosize ();
}

void CSSLButtonExTestDlg::OnTextLeft () {
    m_nHAlign = 0;
    UpdateData (FALSE);
    OnRadioLeft ();
}

void CSSLButtonExTestDlg::OnTextCentre () {
    m_nHAlign = 1;
    UpdateData (FALSE);
    OnRadioCenter ();
}

void CSSLButtonExTestDlg::OnTextRight () {
    m_nHAlign = 2;
    UpdateData (FALSE);
    OnRadioRight ();
}

void CSSLButtonExTestDlg::OnTextTop () {
    m_nVAlign = 0;
    UpdateData (FALSE);
    OnRadioTop ();
}

void CSSLButtonExTestDlg::OnTextMiddle () {
    m_nVAlign = 1;
    UpdateData (FALSE);
    OnRadioCenter ();
}

void CSSLButtonExTestDlg::OnTextBottom () {
    m_nVAlign = 2;
    UpdateData (FALSE);
    OnRadioBottom ();
}

void CSSLButtonExTestDlg::OnImageLeft () {
    m_nImgHAlign = 0;
    UpdateData (FALSE);
    OnRadioLeft2 ();
}

void CSSLButtonExTestDlg::OnImageCentre () {
    m_nImgHAlign = 1;
    UpdateData (FALSE);
    OnRadioCenter2 ();
}

void CSSLButtonExTestDlg::OnImageRight () {
    m_nImgHAlign = 2;
    UpdateData (FALSE);
    OnRadioRight2 ();
}

void CSSLButtonExTestDlg::OnImageTop () {
    m_nImgVAlign = 0;
    UpdateData (FALSE);
    OnRadioTop2 ();
}

void CSSLButtonExTestDlg::OnImageMiddle () {
    m_nImgVAlign = 1;
    UpdateData (FALSE);
    OnRadioCenter2 ();
}

void CSSLButtonExTestDlg::OnImageBottom () {
    m_nImgVAlign = 2;
    UpdateData (FALSE);
    OnRadioBottom2 ();
}

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)

Share

About the Author

Derek Lakin
Software Developer (Senior)
United Kingdom United Kingdom
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.141216.1 | Last Updated 5 Dec 2001
Article Copyright 2001 by Derek Lakin
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid