你可以在CDialog 中申明一个成员CToolTipCtrl m_tipCtrl
在OnInitDialog中加入
m_tipCtrl.Create(this);
m_tipCtrl.Active(TRUE);
m_tipCtrl.AddTool(GetDlgItem(位图按钮的ID号,"位图按钮的tip信息");
在CDialog::PreTranslateMessage(MSG *pMsg)中
加入m_tipCtrl.RelayEvent(pMsg);
===========================================
这是实现了,默认情况下就一个方框和提示,
怎么做一个有键头指向的方框提示tip显示框?
在OnInitDialog中加入
m_tipCtrl.Create(this);
m_tipCtrl.Active(TRUE);
m_tipCtrl.AddTool(GetDlgItem(位图按钮的ID号,"位图按钮的tip信息");
在CDialog::PreTranslateMessage(MSG *pMsg)中
加入m_tipCtrl.RelayEvent(pMsg);
===========================================
这是实现了,默认情况下就一个方框和提示,
怎么做一个有键头指向的方框提示tip显示框?
Indicates that the ToolTip control appears when the cursor is on a tool, even if the ToolTip control's owner window is inactive. Without this style, the ToolTip appears only when the tool's owner window is active.TTS_BALLOON
Version 5.80. Indicates that the ToolTip control has the appearance of a cartoon "balloon," with rounded corners and a stem pointing to the item. TTS_NOANIMATE
Version 5.80. Disables sliding ToolTip animation on Microsoft® Windows® 98 and Windows 2000 systems. This style is ignored on earlier systems.TTS_NOFADE
Version 5.80. Disables fading ToolTip animation on Windows 2000 systems. This style is ignored on earlier Windows NT systems, and on Windows 95 and Windows 98. TTS_NOPREFIX
Prevents the system from stripping the ampersand character from a string. Without this style, the system automatically strips ampersand characters. This allows an application to use the same string as both a menu item and as text in a ToolTip control.第二个
必须要加#define TTS_BALLOON 0x40
第二个参数参有效果