Click here to Skip to main content
15,894,405 members
Articles / Desktop Programming / MFC

GroupControl

Rate me:
Please Sign up or sign in to vote.
4.72/5 (30 votes)
21 Feb 2005CPOL5 min read 239.9K   7.8K   107  
CButton-derived control to help with using groups.
// GroupControlDemoDlg.h : header file
//

#if !defined(AFX_GROUPCONTROLDEMODLG_H__6AEE0F69_9D52_11D6_860D_0000B48746CF__INCLUDED_)
#define AFX_GROUPCONTROLDEMODLG_H__6AEE0F69_9D52_11D6_860D_0000B48746CF__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "GroupControl.h"

/////////////////////////////////////////////////////////////////////////////
// CGroupControlDemoDlg dialog

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

// Dialog Data
	//{{AFX_DATA(CGroupControlDemoDlg)
	enum { IDD = IDD_GROUPCONTROLDEMO_DIALOG };
	CButton	m_btnShow2;
	CButton	m_btnShow1;
	CButton	m_btnEnable2;
	CButton	m_btnEnable1;
	CGroupControl	m_grp2;
	CGroupControl	m_grp1;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CGroupControlDemoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnBtnEnable1();
	afx_msg void OnBtnEnable2();
	afx_msg void OnBtnShow1();
	afx_msg void OnBtnShow2();
	afx_msg void OnBtnMoveGrp2();
	afx_msg void OnBtnMoveGrp1();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_GROUPCONTROLDEMODLG_H__6AEE0F69_9D52_11D6_860D_0000B48746CF__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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United Kingdom United Kingdom
Originally from an electronics background, I moved into software in 1996, partly as a result of being made redundant, and partly because I was very much enjoying the small amount of coding (in-at-the-deep-end-C) that I had been doing!

I swiftly moved from C to C++, and learned MFC, and then went on to real-time C on Unix. After this I moved to the company for which I currently work, which specialises in Configuration Management software, and currently program mainly in C/C++, for Windows. I have been gradually moving their legacy C code over to use C++ (with STL, MFC, ATL, and WTL). I have pulled in other technologies (Java, C#, VB, COM, SOAP) where appropriate, especially when integrating with third-party products.

In addition to that, I have overseen the technical side of the company website (ASP, VBScript, JavaScript, HTML, CSS), and have also worked closely with colleagues working on other products (Web-based, C#, ASP.NET, SQL, etc).

For developing, I mainly use Visual Studio 2010, along with an in-house-designed editor based on Andrei Stcherbatchenko's syntax parsing classes, and various (mostly freeware) tools. For website design, I use Dreaweaver CS3.

When not developing software, I enjoy listening to and playing music, playing electric and acoustic guitars and mandolin.

Comments and Discussions