Mercurial > dwindows
comparison win/dw.c @ 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 | b6249d66404c |
children | 3ba4853d5b78 |
comparison
equal
deleted
inserted
replaced
1379:e79cf0d73caf | 1380:cc66b6d4b74e |
---|---|
3545 ti.cbSize = sizeof(TOOLINFO); | 3545 ti.cbSize = sizeof(TOOLINFO); |
3546 ti.uFlags = TTF_SUBCLASS; | 3546 ti.uFlags = TTF_SUBCLASS; |
3547 ti.hwnd = handle; | 3547 ti.hwnd = handle; |
3548 ti.hinst = DWInstance; | 3548 ti.hinst = DWInstance; |
3549 ti.lpszText = text; | 3549 ti.lpszText = text; |
3550 GetClientRect(handle, &ti.rect); | 3550 ti.rect.right = ti.rect.bottom = 500; |
3551 | 3551 |
3552 /* Associate the tooltip with the "tool" window. */ | 3552 /* Associate the tooltip with the "tool" window. */ |
3553 SendMessage(hwndTT, TTM_ADDTOOL, 0, (LPARAM) (LPTOOLINFO) &ti); | 3553 SendMessage(hwndTT, TTM_ADDTOOL, 0, (LPARAM) (LPTOOLINFO) &ti); |
3554 } | 3554 } |
3555 | 3555 |