From: Esme Povirk esme@codeweavers.com
--- dlls/comctl32/tests/tooltips.c | 4 ++++ dlls/comctl32/tooltips.c | 5 +++++ 2 files changed, 9 insertions(+)
diff --git a/dlls/comctl32/tests/tooltips.c b/dlls/comctl32/tests/tooltips.c index d34f83806b5..0b524195b50 100644 --- a/dlls/comctl32/tests/tooltips.c +++ b/dlls/comctl32/tests/tooltips.c @@ -41,6 +41,7 @@ static void test_create_tooltip(BOOL is_v6) { HWND parent, hwnd; DWORD style, exp_style; + DWORD objid;
parent = CreateWindowExA(0, "static", NULL, WS_POPUP, 0, 0, 0, 0, @@ -52,6 +53,9 @@ static void test_create_tooltip(BOOL is_v6) parent, NULL, NULL, 0); ok(hwnd != NULL, "failed to create tooltip wnd\n");
+ objid = SendMessageA(hwnd, WM_GETOBJECT, 0, OBJID_QUERYCLASSNAMEIDX); + ok(objid == 0x10018, "Unexpected objid %lu.\n", objid); + style = GetWindowLongA(hwnd, GWL_STYLE); exp_style = 0x7fffffff | WS_POPUP; exp_style &= ~(WS_CHILD | WS_MAXIMIZE | WS_BORDER | WS_DLGFRAME); diff --git a/dlls/comctl32/tooltips.c b/dlls/comctl32/tooltips.c index 1d8ac3463ab..028b4c8e57c 100644 --- a/dlls/comctl32/tooltips.c +++ b/dlls/comctl32/tooltips.c @@ -2241,6 +2241,11 @@ TOOLTIPS_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) case WM_GETFONT: return TOOLTIPS_GetFont (infoPtr);
+ case WM_GETOBJECT: + if ((LONG)lParam == OBJID_QUERYCLASSNAMEIDX) + return 0x10018; + return DefWindowProcW (hwnd, uMsg, wParam, lParam); + case WM_GETTEXT: return TOOLTIPS_OnWMGetText (infoPtr, wParam, (LPWSTR)lParam);