|
/********************************************************************
Created: 20/3/2004, 20:44
File name: D:\Projects\Exile\statichyperlinkex.h
File path: D:\Projects\Exile
File base: statichyperlinkex
File ext: h
Author: Gogolev Anton
*********************************************************************/
#if !defined(AFX_STATICHYPERLINKEX_H__B0D3F22D_8CD0_4427_B9A4_E419F7F68591__INCLUDED_)
#define AFX_STATICHYPERLINKEX_H__B0D3F22D_8CD0_4427_B9A4_E419F7F68591__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// statichyperlinkex.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CStaticHyperlinkEx window
// Message to notify parent
const UINT SHLE_RBUTTONDOWN = WM_USER + 200;
class CStaticHyperlinkEx : public CStatic
{
// Construction
public:
CStaticHyperlinkEx();
void SetTextColor(COLORREF crText) { m_crText = crText; }
COLORREF GetTextColor() { return m_crText; }
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CStaticHyperlinkEx)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CStaticHyperlinkEx();
// Generated message map functions
protected:
//{{AFX_MSG(CStaticHyperlinkEx)
afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
afx_msg UINT OnNcHitTest(CPoint point);
afx_msg BOOL OnSetCursor(CWnd *pWnd, UINT nHitTest, UINT uMessage);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
HCURSOR m_hCursor;
COLORREF m_crText;
CFont m_fnFont;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STATICHYPERLINKEX_H__B0D3F22D_8CD0_4427_B9A4_E419F7F68591__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.
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