Click here to Skip to main content
15,896,154 members
Articles / Desktop Programming / MFC

Radial Context Menu

Rate me:
Please Sign up or sign in to vote.
4.85/5 (26 votes)
20 Jul 20053 min read 85K   2.6K   52  
Mouse gesture with a graphical user interface.
/////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2005 by Joerg Koenig
// All rights reserved
//
// Distribute freely, except: don't remove my name from the source or
// documentation (don't take credit for my work), mark your changes (don't
// get me blamed for your possible bugs), don't alter or remove this
// notice.
// No warrantee of any kind, express or implied, is included with this
// software; use at your own risk, responsibility for damages (if any) to
// anyone resulting from the use of this software rests entirely with the
// user.
//
// Send bug reports, bug fixes, enhancements, requests, flames, etc., and
// I'll try to keep a version up to date.  I can be reached as follows:
//    J.Koenig@adg.de                 (company site)
//    Joerg.Koenig@rhein-neckar.de    (private site)
/////////////////////////////////////////////////////////////////////////////


#if !defined(AFX_RADIALTIP_H__288DD14D_A6D8_4C1A_8B09_DC11A8DA772D__INCLUDED_)
#define AFX_RADIALTIP_H__288DD14D_A6D8_4C1A_8B09_DC11A8DA772D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RadialTip.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CRadialTip window

class CRadialContextMenu;

class CRadialTip : public CWnd
{
	friend class CRadialContextMenu;

	CString		m_TipText[4];
	int			m_nTextOffset;
	int			m_nSelItem;
	CRadialContextMenu *	m_pMenu;

	// Construction
	public:
		CRadialTip();

	// Attributes
	public:

	// Operations
	public:
		bool	Create(CRadialContextMenu * pMenu, bool bLeft);

	// Overrides
		// ClassWizard generated virtual function overrides
		//{{AFX_VIRTUAL(CRadialTip)
		//}}AFX_VIRTUAL

	// Implementation
	public:
		virtual ~CRadialTip();

		// Generated message map functions
	protected:
		//{{AFX_MSG(CRadialTip)
		afx_msg BOOL OnEraseBkgnd(CDC* pDC);
		afx_msg void OnPaint();
		//}}AFX_MSG
		DECLARE_MESSAGE_MAP()
};

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

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

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

Comments and Discussions