Click here to Skip to main content
11,636,985 members (69,272 online)
Click here to Skip to main content
Add your own
alternative version

CButtonSSL

, 4 Dec 2001 CPOL 284.5K 6.5K 70
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
// SSLButtonExTestDlg.h : header file
//

#if !defined(AFX_SSLBUTTONEXTESTDLG_H__29DF0487_8196_11D5_9EFE_000102FB9990__INCLUDED_)
#define AFX_SSLBUTTONEXTESTDLG_H__29DF0487_8196_11D5_9EFE_000102FB9990__INCLUDED_

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

#include "..\Source\ButtonSSL.h"

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

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

// Dialog Data
	//{{AFX_DATA(CSSLButtonExTestDlg)
	enum { IDD = IDD_SSLBUTTONEXTEST_DIALOG };
	CButtonSSL m_sslRadioLeft;
    CButtonSSL m_sslRadioCenter;
    CButtonSSL m_sslRadioRight;
	CButtonSSL m_checkEnable;
	CButtonSSL m_btnTest;
	BOOL	m_bFlat;
	BOOL	m_bMenu;
	int		m_nVAlign;
	int		m_nHAlign;
	BOOL	m_bEnabled;
	int		m_nImgHAlign;
	int		m_nImgVAlign;
	BOOL	m_bAutoSize;
	//}}AFX_DATA

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

// Implementation
private:
	void SetTextAlign ();
	void SetImageAlign ();
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CSSLButtonExTestDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnCheckFlat();
	afx_msg void OnCheckMenu();
	afx_msg void OnRadioLeft();
	afx_msg void OnRadioRight();
	afx_msg void OnRadioCenter();
	afx_msg void OnRadioTop();
	afx_msg void OnRadioMiddle();
	afx_msg void OnRadioBottom();
	afx_msg void OnCheckEnable();
	afx_msg void OnRadioCenter2();
	afx_msg void OnRadioLeft2();
	afx_msg void OnRadioMiddle2();
	afx_msg void OnRadioRight2();
	afx_msg void OnRadioTop2();
	afx_msg void OnRadioBottom2();
	afx_msg void OnCheckAutosize();
	//}}AFX_MSG
    afx_msg void OnFlatButton ();
    afx_msg void OnMenuButton ();
    afx_msg void OnAutoSize ();
    afx_msg void OnTextLeft ();
    afx_msg void OnTextCentre ();
    afx_msg void OnTextRight ();
    afx_msg void OnTextTop ();
    afx_msg void OnTextMiddle ();
    afx_msg void OnTextBottom ();
    afx_msg void OnImageLeft ();
    afx_msg void OnImageCentre ();
    afx_msg void OnImageRight ();
    afx_msg void OnImageTop ();
    afx_msg void OnImageMiddle ();
    afx_msg void OnImageBottom ();
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SSLBUTTONEXTESTDLG_H__29DF0487_8196_11D5_9EFE_000102FB9990__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)

Share

About the Author

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

You may also be interested in...

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