1. 我想实现当鼠标移动到编辑框上就出现提示条,过一会儿提示条就能自动消失的功能2. 请问如何实现

解决方案 »

  1.   

    m_tooltip.Create(this);
    m_tooltip.AddTool(GetDlgItem(IDC_LIST1), _T("<b><ct=0x0000FF><al_c>显示</b><br><ct=0x00AA00><hr=100%></ct><br>文件处理结果显示列表"),IDI_PINFORMATION);
      m_tooltip.SetNotify();
    m_tooltip.SetDefaultFont();
      

  2.   


    1. error C2065: 'IDI_PINFORMATION' : undeclared identifier   error C2039: 'SetNotify' : is not a member of 'CToolTipCtrl'   error C2039: 'SetDefaultFont' : is not a member of 'CToolTipCtrl'
      

  3.   

      IDI_PRNTORMATION是你那个空间的ID号,具体用发参考MSDN CToolTipCtrl类.