Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding ToolTips to a CBitmap object

Status
Not open for further replies.

LuisEnrique

Programmer
Nov 15, 2001
10
0
0
US
Hi:
I was wondering if there is a way to put ToolTips to a CBitmap object. I have a line that says:

m_ToolTip.AddTool(&m_Bmp, _T("This is a picture"));

were m_Bmp is a CBitmap object. The compiler comes with an error saying:

...int __thiscall CToolTipCtrl::AddTool(class CWnd *,unsigned int,const struct tagRECT *,unsigned int)' : cannot convert parameter 1 from 'class CBitmap *' to 'class CWnd *'

Is there something that I need to do to make this work? Any answer is more than welcome.

Best regards,
Luis E.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top