From: Esme Povirk esme@codeweavers.com
--- dlls/comctl32/status.c | 5 +++++ dlls/comctl32/tests/status.c | 3 +++ 2 files changed, 8 insertions(+)
diff --git a/dlls/comctl32/status.c b/dlls/comctl32/status.c index 3e1bc4902ff..3473cf8f05a 100644 --- a/dlls/comctl32/status.c +++ b/dlls/comctl32/status.c @@ -1211,6 +1211,11 @@ StatusWindowProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) case WM_GETFONT: return (LRESULT)(infoPtr->hFont? infoPtr->hFont : infoPtr->hDefaultFont);
+ case WM_GETOBJECT: + if ((LONG)lParam == OBJID_QUERYCLASSNAMEIDX) + return 0x1000b; + return DefWindowProcW (hwnd, msg, wParam, lParam); + case WM_GETTEXT: return STATUSBAR_WMGetText (infoPtr, (INT)wParam, (LPWSTR)lParam);
diff --git a/dlls/comctl32/tests/status.c b/dlls/comctl32/tests/status.c index ac24f91cbb8..272145d5772 100644 --- a/dlls/comctl32/tests/status.c +++ b/dlls/comctl32/tests/status.c @@ -270,6 +270,9 @@ static void test_status_control(void)
hWndStatus = create_status_control(WS_VISIBLE | SBT_TOOLTIPS, 0);
+ r = SendMessageA(hWndStatus, WM_GETOBJECT, 0, OBJID_QUERYCLASSNAMEIDX); + expect(0x1000b, r); + /* Divide into parts and set text */ r = SendMessageA(hWndStatus, SB_SETPARTS, 3, (LPARAM)nParts); expect(TRUE,r);