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()
}
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()
}