Click here to Skip to main content
15,895,142 members
Articles / Desktop Programming / MFC

Professional User Interface Suite

Rate me:
Please Sign up or sign in to vote.
4.99/5 (174 votes)
13 Jan 200423 min read 1.5M   23.6K   641  
MFC extension library enabling software to be provided with a professional UI
// ChildView.h : interface of the CChildView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_CHILDVIEW_H__33CAE65F_75FA_4040_ADF4_513C2DF610BC__INCLUDED_)
#define AFX_CHILDVIEW_H__33CAE65F_75FA_4040_ADF4_513C2DF610BC__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CChildView window

class CChildView : public CFormView
{
// Construction
public:
	CChildView();

	DECLARE_DYNCREATE( CChildView );

// Attributes
public:

// Operations
protected:
	LOGFONT m_lf;
	bool m_bInitializingControls:1;
	void _ConrolsData_2_UiSettings();
public:

	//{{AFX_DATA(CChildView)
	enum { IDD = IDD_CHILD_FORM };
	CSliderCtrl	m_wndSliderHTBB;
	CExtEdit	m_EditFontWidth;
	CExtEdit	m_EditFontHeight;
	CExtComboBox	m_ComboFontFaceName;
	CExtBtnOnFlat	m_BtnFontUnderline;
	CExtBtnOnFlat	m_BtnFontStrikeout;
	CExtBtnOnFlat	m_BtnFontItalic;
	CExtBtnOnFlat	m_BtnFontBold;
	//}}AFX_DATA

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

// Implementation
public:
	virtual ~CChildView();

	// Generated message map functions
protected:
	//{{AFX_MSG(CChildView)
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnSettingChange(UINT uFlags, LPCTSTR lpszSection);
	afx_msg void OnSysColorChange();
	afx_msg void OnCheckFontBold();
	afx_msg void OnCheckFontItalic();
	afx_msg void OnCheckFontUnderline();
	afx_msg void OnCheckFontStrikeout();
	afx_msg void OnChangeEditFontWidth();
	afx_msg void OnChangeEditFontHeight();
	afx_msg void OnSelchangeComboFontFaceName();
	afx_msg void OnViewUiStyle2k();
	afx_msg void OnUpdateViewUiStyle2k(CCmdUI* pCmdUI);
	afx_msg void OnViewUiStyleXp();
	afx_msg void OnUpdateViewUiStyleXp(CCmdUI* pCmdUI);
	afx_msg void OnViewUiStyle2003();
	afx_msg void OnUpdateViewUiStyle2003(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

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

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

Comments and Discussions