我想看看CToolTip类是如何实现的,请问哪两个文件能看到它的申明和定义?

wt13 2001-12-30 09:12:53
VC++ 6.0 + Win98 Se

不知道是在哪个文件里面

谢谢
...全文
68 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
liu_feng_fly 2001-12-30
  • 打赏
  • 举报
回复
能看到头文件就不错了,.cpp文件一般是不公开的,那可是商业秘密啊,microsoft可不是开放源代码的支持者
ygd 2001-12-30
  • 打赏
  • 举报
回复
class CToolTipWnd : public CWnd
{
public:
CToolTipWnd();
virtual ~CToolTipWnd();

bool m_bStuck; // stuck to mouse pointer when moving inside a control

void RelayEvent( LPMSG );
BOOL Create( CWnd *parent );

void AddTool(CWnd *pWnd, CString strText, COLORREF clrTextColor = 0, int timerDelay = -1, int timerDelayShow = -1);

void SetWidth( int iWidth );
void SetHeight( int iHeight );
void SetBkColor( COLORREF clrRef );
void SetFrameColor( COLORREF clrRef );
void SetDefTextColor( COLORREF clrRef );
void SetFontHeight( int iHeight );
void SetFontName( CString strFontName );
void SetDelay( int iDelay );

void Show( HWND hWnd, const char *overrideText = NULL, int timerDelay = -1, int timerDelayShow=-1);
void Hide();

protected:
//{{AFX_MSG(CToolTipWnd)
afx_msg void OnPaint();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg BOOL CToolTipWnd::PreTranslateMessage( MSG *pMsg );
//}}AFX_MSG
DECLARE_MESSAGE_MAP()

private:
LPCTSTR m_lpWndCls;
HWND m_hParentWnd;

CFont m_strTextFont;
CRgn m_rgn;
CRgn m_rgnTri;
CRgn m_rgnComb;
CRect m_rectText;

CMapPtrToPtr m_toolPtr; // all tooltips specifications
HWND m_pCurrwnd; // control for which a tooltip is currently displayed

// Tooltip default parameters
int m_iWidth;
int m_iHeight;
COLORREF m_clrBkColor;
COLORREF m_clrFrameColor;
COLORREF m_clrTextColor;
int m_iFontHeight;
CString m_strFontName;
CString m_strText;
int m_iDelay;
int m_iDelayShow;

bool m_bSkipNextMove; // to skip the next WM_MOUSEMOVE message
UINT m_iTimer;
UINT m_iTimer2;

void KillTimer();
void SetTimer( int iDelay );
void Show( int x, int y, int timerDelayHide, int timerDelayShow );


void SetShowTimer(int iTimeTillShow);
void KillShowTimer(void);
};
wt13 2001-12-30
  • 打赏
  • 举报
回复
头文件是afxcmm.h
现在不知道源文件
wt13 2001-12-30
  • 打赏
  • 举报
回复
没有
panda_w 2001-12-30
  • 打赏
  • 举报
回复
afxwin.h?
wt13 2001-12-30
  • 打赏
  • 举报
回复
up一下

16,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧