From: Esme Povirk esme@codeweavers.com
--- dlls/comctl32/tests/updown.c | 4 ++++ dlls/comctl32/updown.c | 5 +++++ 2 files changed, 9 insertions(+)
diff --git a/dlls/comctl32/tests/updown.c b/dlls/comctl32/tests/updown.c index d863e2692e0..6920f6a9fc1 100644 --- a/dlls/comctl32/tests/updown.c +++ b/dlls/comctl32/tests/updown.c @@ -835,6 +835,7 @@ static void test_updown_create(void) CHAR text[MAX_PATH]; HWND updown; RECT r; + DWORD objid;
flush_sequences(sequences, NUM_MSG_SEQUENCES);
@@ -843,6 +844,9 @@ static void test_updown_create(void) ok_sequence(sequences, PARENT_SEQ_INDEX, add_updown_to_parent_seq, "add updown control to parent", TRUE); ok_sequence(sequences, EDIT_SEQ_INDEX, add_updown_with_edit_seq, "add updown control with edit", FALSE);
+ objid = SendMessageA(updown, WM_GETOBJECT, 0, OBJID_QUERYCLASSNAMEIDX); + ok(objid == 0x10016, "Unexpected objid %lu.\n", objid); + flush_sequences(sequences, NUM_MSG_SEQUENCES);
GetWindowTextA(g_edit, text, MAX_PATH); diff --git a/dlls/comctl32/updown.c b/dlls/comctl32/updown.c index 775dcb4bd3c..0a2e760216b 100644 --- a/dlls/comctl32/updown.c +++ b/dlls/comctl32/updown.c @@ -1042,6 +1042,11 @@ static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam, L return UPDOWN_KeyPressed(infoPtr, (int)wParam); break;
+ case WM_GETOBJECT: + if ((LONG)lParam == OBJID_QUERYCLASSNAMEIDX) + return 0x10016; + break; + case WM_PRINTCLIENT: case WM_PAINT: return UPDOWN_Paint (infoPtr, (HDC)wParam);