# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1322392782 0 # Node ID 152e3c8916de49e5d12af55a28cc676f7f845020 # Parent 2ccf7eacedf5610400d5643250302459f0b10229 Set tooltip on the entryfield part of a combobox... Otherwise the tooltip will float at the bottom of the expanded combobox's area. diff -r 2ccf7eacedf5 -r 152e3c8916de os2/dw.c --- 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);