comparison win/dw.c @ 1403:20c6d0c50c94

Need to make the tooltip rect the max possible control size.. otherwise it might get clipped. using 2000x2000 for now... should be good enough for most situations.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 28 Nov 2011 05:49:27 +0000
parents ccd383e11ff8
children 56f311dc23f6
comparison
equal deleted inserted replaced
1402:8ff5b05318fb 1403:20c6d0c50c94
3554 ti.cbSize = sizeof(TOOLINFO); 3554 ti.cbSize = sizeof(TOOLINFO);
3555 ti.uFlags = TTF_SUBCLASS; 3555 ti.uFlags = TTF_SUBCLASS;
3556 ti.hwnd = handle; 3556 ti.hwnd = handle;
3557 ti.hinst = DWInstance; 3557 ti.hinst = DWInstance;
3558 ti.lpszText = text; 3558 ti.lpszText = text;
3559 ti.rect.right = ti.rect.bottom = 500; 3559 ti.rect.right = ti.rect.bottom = 2000;
3560 3560
3561 /* Associate the tooltip with the "tool" window. */ 3561 /* Associate the tooltip with the "tool" window. */
3562 SendMessage(hwndTT, TTM_ADDTOOL, 0, (LPARAM) (LPTOOLINFO) &ti); 3562 SendMessage(hwndTT, TTM_ADDTOOL, 0, (LPARAM) (LPTOOLINFO) &ti);
3563 } 3563 }
3564 dw_window_set_data(handle, "_dw_tooltip", (void *)hwndTT); 3564 dw_window_set_data(handle, "_dw_tooltip", (void *)hwndTT);