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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making Tool Tips Work 2

Status
Not open for further replies.

psnead

Programmer
Jul 5, 2000
41
0
0
DK
Hi everybody,
I have a dialog inside of an MDI, and I've been trying to get the tool tips on the dialog buttons to work. When I run the application in Debug mode I get an assertion error, but when I run it in Release mode I don't -- and everything works great. The big problem is that I am developing on NT, and when I move the Release .exe to a 95 machine, the tool tips no longer work on the buttons or toolbar. Anyone know how I might fix this?

Here is the assertion error I get.

// Special DDX_ proc for subclassing controls
ASSERT(!pDX->m_bSaveAndValidate);

I have a view class with an OnInitialUpdate function.
void CMyView::OnInitialUpdate()
{
CView::OnInitialUpdate();
BOOL ret = EnableToolTips(TRUE);
ASSERT(ret);
}

and here is my ToolTipAction:

BOOL CMyView::OnToolTipNotify( UINT id, NMHDR * pNMHDR, LRESULT * pResult )
{
ToolTip Stuff;
}

Here are my message maps:

BEGIN_MESSAGE_MAP(CMyView, CFormView)

ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTW, 0, 0xFFFF, OnToolTipNotify)

ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTA, 0, 0xFFFF, OnToolTipNotify)

END_MESSAGE_MAP()


}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top