You might want to start a fresh MDI application and see if you can recreate
the problem there. If you do then post the code there.
fine in my case.
AliR.
Hi AliR,
the code which creates tooltips is here:
int CMdvMDIChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CMDIChildWnd::OnCreate(lpCreateStruct) == -1)
return -1;
EnableToolTips();
BOOL result = FALSE;
CRect toolbarRect(0,0,100,20);
result = m_wndToolBar.Create(this);
ASSERT(m_toolbarResId);// set it explicitly to right resource before
constructing view
result = m_wndToolBar.LoadToolBar(m_toolbarResId);
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
m_wndToolBar.SetBarStyle(m_wndToolBar.GetBarStyle() | CBRS_TOOLTIPS |
CBRS_FLYBY | CBRS_SIZE_DYNAMIC);
result = m_wndToolBar.ShowWindow(SW_SHOW);
return 0;
}
Do you think that something wrong is in it ?
Thx!
Peter
"AliR (VC++ MVP)" wrote:
You might want to post the code where you create your toolbar in your
child
frame.
AliR.
"Peter" <Peter@discussions.microsoft.com> wrote in message
news:F03C49FF-B467-42E8-90E8-EEF9895095A6@microsoft.com...
I have MDI application. There is class CMyMDIChildFrame derived from
CMDIChildWindow (used for creating document template) I have added
toolbar.
Toolbar is created with CBRS_TOOLTIPS style.
Problem is that when mouse on some button in toolbar, then it displays
tooltip only if window ownering toolbar is not active.
When I activate (by mouse click) child window with toolbar, it does not
display tooltips, when I activate other child window then tooltips for
my
child window is displayed.
I tried also to use way: EnableTooltips() and ON_NOTIFY_EX(
TTN_NEEDTEXT,
0, OnTTNNeedText ),
but result is the same and handler is called only when mouse is on
button
AND windows is not active.
Have you any tip to solve this problem ?
Thx!
Peter