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

TTN_NEEDTEXT not being received

Status
Not open for further replies.

dima2

Programmer
Jan 20, 2002
85
LB
hi,
i have a dialog, in which I placed a tab, and I toggle between toolbars whenever a different tab is chosen.

in the OnSelChange of the tab control, I show or hide toolbars through the following:
for example
if(m_tab.GetCurSel()==1 )
{
m_ToolBar1.ShowWindow(SW_RESTORE);
m_ToolBar2.ShowWindow(SW_HIDE);
}

and so on.

in order to show tooltips I'm handling the TTN_NEEDTEXT message with On_Notify_Ex.

now the problem is this:
-when the dialog is first created the toolbar that is shown displays tooltips correctly.
- if I toggle to the other toolbar the TTN_NEEDTEXT is not received.
however if i place the mouse cursor on any control in the dialog and then back on the toolbar the tooltip is shown correctly
- after that no matter how much I toggle between toolbars the tooltip is always shown correctly.

Now what makes it even weirder is that :
if on the fist display of the dialog i go to the second toolbar without having displayed tooltip on the first (i immidiately select the second tab), the tooltip on the second toolbar is shown but when i go back to the first toolbar no tooltips.

very strange behaviour, I can't seem to know what's wrong.

any ideas?
thx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top