// Create a windowless timer
//
m_ulId = ::WinStartTimer( m_Hab
- ,NULL
- ,(m_ulId ? m_ulId : 1L)
+ ,NULLHANDLE
+ ,0
,(ULONG)nMilliseconds
);
if (m_ulId > 0L)
::WinStopTimer(m_Hab, NULL, m_ulId);
wxTimerList.DeleteObject(this);
}
- m_ulId = 0L;
}
// ----------------------------------------------------------------------------
if (!pTool)
{
m_vToolTimer.Stop();
- if (m_pToolTip)
- {
- delete m_pToolTip;
- m_pToolTip = NULL;
- }
if (m_nCurrentTool > -1)
{
if (rEvent.LeftIsDown())
OnMouseEnter(m_nCurrentTool);
if (!pTool->GetShortHelp().IsEmpty())
{
+ if (m_pToolTip)
+ delete m_pToolTip;
m_pToolTip = new wxToolTip(pTool->GetShortHelp());
m_vXMouse = (wxCoord)vPoint.x;
m_vYMouse = (wxCoord)vPoint.y;
);
m_pToolTip->DisplayToolTipWindow(vPos);
+ m_vToolTimer.Stop();
m_vToolExpTimer.Start(3000L, TRUE);
}
else if (rEvent.GetId() == (int)m_vToolExpTimer.GetTimerId())
{
m_pToolTip->HideToolTipWindow();
+ GetParent()->Refresh();
+ m_vToolExpTimer.Stop();
}
} // end of wxToolBar::OnTimer
,sizeof(LONG)
,(PVOID)&lColor
);
- strcpy(zFont, "10.Helv");
+ strcpy(zFont, "8.Helv");
::WinSetPresParam( m_hWnd
,PP_FONTNAMESIZE
,strlen(zFont) + 1
::WinQueryWindowPos(m_hWnd, &vSwp);
m_sText = rsTip;
- lWidth = rsTip.Length() * 13;
+ lWidth = rsTip.Length() * 8;
lHeight = 15;
::WinSetWindowPos( m_hWnd
,HWND_TOP