Click here to Skip to main content
15,886,075 members
Articles / Desktop Programming / MFC

The Ultimate Toolbox Home Page

Rate me:
Please Sign up or sign in to vote.
4.97/5 (141 votes)
25 Aug 2007CPOL13 min read 3.2M   91.4K   476  
The Ultimate Toolbox is now Open Source
// BitmapButtonDemoDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CBitmapButtonDemoDlg dialog

#include "OXBitmapButton.h"
#include "OXSoundEffectManager.h"


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

// Dialog Data
	//{{AFX_DATA(CBitmapButtonDemoDlg)
	enum { IDD = IDD_BITMAPBUTTONDEMO_DIALOG };
	COXBitmapButton	m_wndButtonAnimated;
	CStatic	m_wndNew;
	COXBitmapButton	m_wndButton12;
	COXBitmapButton	m_wndButton11;
	COXBitmapButton	m_wndButton10;
	COXBitmapButton	m_wndButton1;
	BOOL	m_bDisabled1;
	BOOL	m_bTrackLook1;
	BOOL	m_bTrackLook1x;
	BOOL	m_bAction1;
	int		m_nAlignment;
	BOOL	m_bAutoResize1;
	CString	m_sText1;
	BOOL	m_bText1x;
	CString	m_sToolTipText1;
	BOOL	m_bToolTip;
	BOOL	m_bDisabled1X;
	BOOL	m_bPseudoDisable;
	BOOL	m_bHyperLook;
	int		m_nStyle;
	CString	m_sHeader;
	BOOL	m_bMultiline;
	//}}AFX_DATA
	int nState;

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

// Implementation
protected:
	HICON m_hIcon;
	CSize m_originalSize1;
	CFont m_largeFont;

	void PositionButtonRow();

	// Generated message map functions
	//{{AFX_MSG(CBitmapButtonDemoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnDisabled1();
	afx_msg void OnTrackLook1x();
	afx_msg void OnTrackLook1();
	afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
	afx_msg void OnButton1();
	afx_msg void OnAlignment();
	afx_msg void OnAutoResize1();
	afx_msg void OnSetText();
	afx_msg void OnText1x();
	afx_msg void OnFont1();
	afx_msg void OnSetTooltip();
	afx_msg void OnTooltip();
	afx_msg void OnDisabled1x();
	afx_msg void OnHyper();
	afx_msg void OnPseudoDisable();
	afx_msg void OnHyperLook();
	afx_msg void OnRadioNormal();
	afx_msg void OnRadioDropdown();
	afx_msg void OnRadioRightdropdown();
	afx_msg void OnRadioToggle();
	afx_msg void OnRadioNoarrowdropdown();
	afx_msg void OnRadioTogglethreestate();
	afx_msg void OnAction1();
	afx_msg void OnMultiline();
	//}}AFX_MSG
	afx_msg void OnDropDownButton1(NMHDR * pNotifyStruct, LRESULT * result);
	afx_msg void OnToggleButton1(NMHDR * pNotifyStruct, LRESULT * result);
	DECLARE_MESSAGE_MAP()

private:
};

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
Web Developer
Canada Canada
In January 2005, David Cunningham and Chris Maunder created TheUltimateToolbox.com, a new group dedicated to the continued development, support and growth of Dundas Software’s award winning line of MFC, C++ and ActiveX control products.

Ultimate Grid for MFC, Ultimate Toolbox for MFC, and Ultimate TCP/IP have been stalwarts of C++/MFC development for a decade. Thousands of developers have used these products to speed their time to market, improve the quality of their finished products, and enhance the reliability and flexibility of their software.
This is a Organisation

476 members

Comments and Discussions