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

CPPToolTip v2.1

Rate me:
Please Sign up or sign in to vote.
4.96/5 (356 votes)
4 Mar 2005CPOL23 min read 1.6M   33K   635  
A class that allows you to display your data for a control as tooltip
#if !defined(AFX_TESTPAGEGENERAL_H__8A9DC7AD_4FA8_47D0_B618_B31EF9D13B09__INCLUDED_)
#define AFX_TESTPAGEGENERAL_H__8A9DC7AD_4FA8_47D0_B618_B31EF9D13B09__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TestPageGeneral.h : header file
//
#include "PPTooltip.h"

/////////////////////////////////////////////////////////////////////////////
// CTestPageGeneral dialog

class CTestPageGeneral : public CPropertyPage
{
	DECLARE_DYNCREATE(CTestPageGeneral)

// Construction
public:
	CPPToolTip m_tooltip;
	CTestPageGeneral();
	~CTestPageGeneral();

// Dialog Data
	//{{AFX_DATA(CTestPageGeneral)
	enum { IDD = IDD_PAGETEST_GENERAL };
	CString	m_tooltip_string;
	BOOL	m_disable_look;
	BOOL	m_enable_escape;
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CTestPageGeneral)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	virtual BOOL OnKillActive();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	
	// Generated message map functions
	//{{AFX_MSG(CTestPageGeneral)
	virtual BOOL OnInitDialog();
	afx_msg void OnDisableLookButton();
	afx_msg void OnChangeTooltipString();
	afx_msg void OnShowHelp();
	afx_msg void OnShowHelp2();
	afx_msg void OnEnableSequences();
	//}}AFX_MSG
	afx_msg void NotifyDisplayTooltip(NMHDR * pNMHDR, LRESULT * result);
	DECLARE_MESSAGE_MAP()

};

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

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


Written By
Software Developer SvyazInvest
Belarus Belarus
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions