# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1322395685 0 # Node ID 8e569dd09d946bfbb152d7a9329ac9f91f3b03d8 # Parent 152e3c8916de49e5d12af55a28cc676f7f845020 On Windows get the buddy from the child window data when creating a combobox. Also set the tooltip on buddy controls for full coverage. Fixes the tooltip only showing for the down arrow on comboboxes. diff -r 152e3c8916de -r 8e569dd09d94 win/dw.c --- a/win/dw.c Sun Nov 27 11:19:42 2011 +0000 +++ b/win/dw.c Sun Nov 27 12:08:05 2011 +0000 @@ -5567,7 +5567,8 @@ cinfo2->back = cinfo->back = -1; cinfo2->combo = cinfo->combo = tmp; EnumChildWindows(tmp, _subclass_child, (LPARAM)cinfo2); - + cinfo->buddy = cinfo2->buddy; + SetWindowLongPtr(tmp, GWLP_USERDATA, (LONG_PTR)cinfo); dw_window_set_font(tmp, DefaultFont); SetWindowText(tmp, text); @@ -6201,6 +6202,10 @@ */ void API dw_window_set_tooltip(HWND handle, char *bubbletext) { + ColorInfo *cinfo = (ColorInfo *)GetWindowLongPtr(handle, GWLP_USERDATA); + + if(cinfo && cinfo->buddy) + _create_tooltip(cinfo->buddy, bubbletext); _create_tooltip(handle, bubbletext); }