From 887a91f4b75b305f6c29e945f35b39a157a87eb3 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Tue, 7 Nov 2000 20:29:50 +0000 Subject: [PATCH] Implemented new messages. --- dlls/comctl32/updown.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/dlls/comctl32/updown.c b/dlls/comctl32/updown.c index 0d6ab31d9da..ec2e62451de 100644 --- a/dlls/comctl32/updown.c +++ b/dlls/comctl32/updown.c @@ -944,6 +944,24 @@ static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam, infoPtr->MinVal, infoPtr->MaxVal, hwnd); break; + case UDM_GETPOS32: + if ((LPBOOL)lParam != NULL) + *((LPBOOL)lParam) = TRUE; + return infoPtr->CurVal; + + case UDM_SETPOS32: + if(!UPDOWN_InBounds(hwnd, (int)lParam)){ + if((int)lParam < infoPtr->MinVal) + lParam = infoPtr->MinVal; + if((int)lParam > infoPtr->MaxVal) + lParam = infoPtr->MaxVal; + } + temp = infoPtr->CurVal; /* save prev value */ + infoPtr->CurVal = (int)lParam; /* set the new value */ + if(dwStyle & UDS_SETBUDDYINT) + UPDOWN_SetBuddyInt (hwnd); + return temp; /* return prev value */ + default: if (message >= WM_USER) ERR("unknown msg %04x wp=%04x lp=%08lx\n",