Mercurial > dwindows
changeset 1380:cc66b6d4b74e
Initializing the widgets to size 0 on Windows causes the tooltip rect to also be 0...
This makes the tooltips invisible, so instead initialize the tooltip rect to 500x500.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 24 Nov 2011 06:07:40 +0000 |
parents | e79cf0d73caf |
children | 3ba4853d5b78 |
files | win/dw.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/win/dw.c Wed Nov 23 20:47:28 2011 +0000 +++ b/win/dw.c Thu Nov 24 06:07:40 2011 +0000 @@ -3547,7 +3547,7 @@ ti.hwnd = handle; ti.hinst = DWInstance; ti.lpszText = text; - GetClientRect(handle, &ti.rect); + ti.rect.right = ti.rect.bottom = 500; /* Associate the tooltip with the "tool" window. */ SendMessage(hwndTT, TTM_ADDTOOL, 0, (LPARAM) (LPTOOLINFO) &ti);