Mercurial > dwindows
changeset 1398:152e3c8916de
Set tooltip on the entryfield part of a combobox...
Otherwise the tooltip will float at the bottom of the
expanded combobox's area.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 27 Nov 2011 11:19:42 +0000 |
parents | 2ccf7eacedf5 |
children | 8e569dd09d94 |
files | os2/dw.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/os2/dw.c Sun Nov 27 11:01:01 2011 +0000 +++ b/os2/dw.c Sun Nov 27 11:19:42 2011 +0000 @@ -6391,8 +6391,10 @@ */ void API dw_window_set_tooltip(HWND handle, char *bubbletext) { - WindowData *blah = (WindowData *)WinQueryWindowPtr(handle, QWP_USER); - HWND buddy = (HWND)dw_window_get_data(handle, "_dw_buddy"); + HWND buddy = (HWND)dw_window_get_data(handle, "_dw_comboentry"); + WindowData *blah = (WindowData *)WinQueryWindowPtr(buddy ? buddy : handle, QWP_USER); + + buddy = (HWND)dw_window_get_data(handle, "_dw_buddy"); if(blah) strncpy(blah->bubbletext, bubbletext, BUBBLE_HELP_MAX - 1);