comparison src/gui_w32.c @ 1489:62716fd61fe9 v7.1.204

updated for version 7.1-204
author vimboss
date Sat, 05 Jan 2008 12:15:52 +0000
parents 0c61c201ba76
children 82b5078be2dd
comparison
equal deleted inserted replaced
1488:205a26fab116 1489:62716fd61fe9
4573 pti->rect.bottom = pt.y + 3; 4573 pti->rect.bottom = pt.y + 3;
4574 4574
4575 SendMessage(beval->balloon, TTM_ADDTOOL, 0, (LPARAM)pti); 4575 SendMessage(beval->balloon, TTM_ADDTOOL, 0, (LPARAM)pti);
4576 /* Make tooltip appear sooner */ 4576 /* Make tooltip appear sooner */
4577 SendMessage(beval->balloon, TTM_SETDELAYTIME, TTDT_INITIAL, 10); 4577 SendMessage(beval->balloon, TTM_SETDELAYTIME, TTDT_INITIAL, 10);
4578 /* I've performed some tests and it seems the longest possible life time
4579 * of tooltip is 30 seconds */
4580 SendMessage(beval->balloon, TTM_SETDELAYTIME, TTDT_AUTOPOP, 30000);
4578 /* 4581 /*
4579 * HACK: force tooltip to appear, because it'll not appear until 4582 * HACK: force tooltip to appear, because it'll not appear until
4580 * first mouse move. D*mn M$ 4583 * first mouse move. D*mn M$
4584 * Amazingly moving (2, 2) and then (-1, -1) the mouse doesn't move.
4581 */ 4585 */
4582 mouse_event(MOUSEEVENTF_MOVE, 1, 1, 0, 0); 4586 mouse_event(MOUSEEVENTF_MOVE, 2, 2, 0, 0);
4583 mouse_event(MOUSEEVENTF_MOVE, (DWORD)-1, (DWORD)-1, 0, 0); 4587 mouse_event(MOUSEEVENTF_MOVE, (DWORD)-1, (DWORD)-1, 0, 0);
4584 vim_free(pti); 4588 vim_free(pti);
4585 } 4589 }
4586 4590
4587 static void 4591 static void