火烧眉毛了! 我的对话框中有个EDIT控件,我想当鼠标移到EDIT区域时,有一个下标提示输入格式,就想VC++里的当鼠标停在某函数上几秒时,有黄色的提示一样,还望大虾们指教!!谢在先!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 //test6dlg.hCToolTipCtrl *m_ptip;//test6dlg.cppCTest6Dlg::~CTest6Dlg(){ delete m_ptip; m_ptip = NULL;}BOOL CTest6Dlg::OnInitDialog(){ CDialog::OnInitDialog(); m_ptip = new CToolTipCtrl; if(!m_ptip->Create(this)) { TRACE("Unable To create ToolTip\n"); return TRUE; } m_ptip->AddTool( GetDlgItem(IDC_BUTTON1), "tooltip"); m_ptip->Activate(TRUE); m_ptip->AddTool( GetDlgItem(IDC_BUTTON2), "hello"); m_ptip->Activate(TRUE); return TRUE;} BOOL CTest6Dlg::PreTranslateMessage(MSG* pMsg){ if (m_ptip != NULL) m_ptip->RelayEvent(pMsg); return CDialog::PreTranslateMessage(pMsg);} 用CToolTipCtrl类,具体用法想不起来了,可以到www.codeproject.com上去查,或参考msdn. MFC编辑框里怎么显示多个数据? vc2008Unicode环境下中文写不进文本中.. 散分了! 帮忙提供些写服务程序的资料和代码!谢谢了先。 怎么样把一个图标画到菜单项中。 我的一些控件接受的 RButtonUp 消息居然是双击 vc中的xml编程有什么好书吗? ★★★ 救命啊!——送分100 ★★★ 关于组合框控件的一个问题。 天下没有可用的vc++的软件吗?一个关于vc安装的问题,急急急|||| _RecordsetPtr的open方法正确执行,但adoEOF出错,why? 我这样打开文件显示到editview中为什么错?
CToolTipCtrl *m_ptip;//test6dlg.cppCTest6Dlg::~CTest6Dlg()
{
delete m_ptip;
m_ptip = NULL;
}BOOL CTest6Dlg::OnInitDialog()
{
CDialog::OnInitDialog(); m_ptip = new CToolTipCtrl;
if(!m_ptip->Create(this))
{
TRACE("Unable To create ToolTip\n");
return TRUE;
}
m_ptip->AddTool( GetDlgItem(IDC_BUTTON1), "tooltip");
m_ptip->Activate(TRUE);
m_ptip->AddTool( GetDlgItem(IDC_BUTTON2), "hello");
m_ptip->Activate(TRUE);
return TRUE;
}
BOOL CTest6Dlg::PreTranslateMessage(MSG* pMsg)
{
if (m_ptip != NULL)
m_ptip->RelayEvent(pMsg); return CDialog::PreTranslateMessage(pMsg);
}