鼠标悬停提示-VC上实现解决办法

鼠标悬停提示-VC上实现
实现功能:
当鼠标移动过后,停在窗口的某个位置不动一定时间(100MS)后,在鼠标停止位置显示提示文字。提示文字代码已经写好,现求鼠标停止事件的判断代码

------解决方案--------------------
其实只要判断鼠标的move事件。当触发move事件时就把计时器初始化,否则就开始计时。这样就满足你的要求了
------解决方案--------------------
///////////////////////////////////////////////////////////////////////////
//
// FILE NAME
//
// XInfoTip.h
//
// COMPONENT
//
// CXInfoTip class interface
//
// DESCRIPTION
//
// This tooltip control implements:
//
// o An immediate popup tip window
// o Normal control tooltips
//
// The tip window can display an icon and multi-line
// tip text. Seperate multiple text lines with a '\n '.
// The tip window 's colors are derrived from
// system window, window text, and scroll bar colors.
//
// Create the control by calling the Create() method.
//
// To display immediate tips, call the Show() method.
// Call SetIcon() to set the icon used for immediate tips.
//
// Use AddTool() to add tool windows. RelayEvent() must
// be called from the parent windows 's PreTranslateMessage().
//
// Call SetShowDelay() to adjust the tip popup delay.
//
// Call SetFont() to change the tooltip text font. The default
// is the system default GUI font.
//
// AUTHOR
//
// Mark Bozeman 09-16-2001
//
///////////////////////////////////////////////////////////////////////////
// This software is released into the public domain.
// You are free to use it in any way you like.
//
// This software is provided "as is " with no expressed
// or implied warranty. I accept no liability for any
// damage or loss of business that this software may cause.
///////////////////////////////////////////////////////////////////////////

#ifndef _XPOPUPTIP_H_INCLUDE_
#define _XPOPUPTIP_H_INCLUDE_

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

class CXInfoTip : public CWnd
{
protected:
///////////////////////////////////////////////////////////////////////////
// Tool information structure
///////////////////////////////////////////////////////////////////////////
typedef struct
{
CString szText; // Tooltip text
HICON hIcon; // Tooltip icon
} TipToolInfo;

// Timer identifiers
enum
{
timerShow = 100000, // Show timer
timerHide = 10001 // Hide timer
};

LPCTSTR m_szClass; // Window class

int m_nShowDelay; // Show delay

CPoint m_ptOrigin; // Popup origin

CString m_szText; // Tip text

UINT m_nTimer; // Show/hide timer

HICON m_hIcon; // Tip icon
CSize m_IconSize; // Tip icon size

CFont *m_pFont; // Tip font

// CMap <HWND, HWND, TipToolInfo, TipToolInfo> m_ToolMap; // Tools map

public:
CXInfoTip();