From: Esme Povirk <esme(a)codeweavers.com> --- dlls/comctl32/static.c | 5 +++++ dlls/comctl32/tests/static.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/dlls/comctl32/static.c b/dlls/comctl32/static.c index 29a0498ba09..605b75612e8 100644 --- a/dlls/comctl32/static.c +++ b/dlls/comctl32/static.c @@ -587,6 +587,11 @@ static LRESULT CALLBACK STATIC_WindowProc( HWND hwnd, UINT uMsg, WPARAM wParam, } break; + case WM_GETOBJECT: + if ((LONG)lParam == OBJID_QUERYCLASSNAMEIDX) + return 0x10003; + break; + case WM_SETFONT: if (hasTextStyle( full_style )) { diff --git a/dlls/comctl32/tests/static.c b/dlls/comctl32/tests/static.c index 551aca2720f..d0c1da8818f 100644 --- a/dlls/comctl32/tests/static.c +++ b/dlls/comctl32/tests/static.c @@ -135,6 +135,10 @@ static void test_set_text(void) { HWND hStatic = create_static(SS_SIMPLE); char buffA[10]; + DWORD idx; + + idx = SendMessageA(hStatic, WM_GETOBJECT, 0, OBJID_QUERYCLASSNAMEIDX); + ok(idx == 0x10003, "Got index 0x%08lx\n", idx); GetWindowTextA(hStatic, buffA, sizeof(buffA)); ok(!strcmp(buffA, "Test"), "got wrong text %s\n", buffA); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8389