Skip to content

Commit

Permalink
GlideNUI-wtl: Increase Tooltip delay
Browse files Browse the repository at this point in the history
  • Loading branch information
oddMLan authored and gonetz committed Apr 22, 2020
1 parent 4f5963b commit 3114337
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/GLideNUI-wtl/wtl-tooltip.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class CToolTipDialog
CToolInfo ToolInfo(pT->m_uToolFlags, *pT, 0, 0, MAKEINTRESOURCE(pT->IDD));
m_TT.AddTool(&ToolInfo);
::EnumChildWindows(*pT, SetTool, (LPARAM)pT);
TTDelay();
TTSize(0);
TTActivate(TRUE);
}
Expand All @@ -37,6 +38,12 @@ class CToolTipDialog
{
m_TT.SetMaxTipWidth(nPixel);
}
void TTDelay()
{
m_TT.SetDelayTime(TTDT_INITIAL, 1250);
m_TT.SetDelayTime(TTDT_RESHOW, 600);
m_TT.SetDelayTime(TTDT_AUTOPOP, 32767);
}

void TTSetTxt(HWND hTool, _U_STRINGorID text)
{
Expand Down

0 comments on commit 3114337

Please sign in to comment.