comctl32/button: Implement BCM_SETDROPDOWNSTATE.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gabriel Ivăncescu 2019-04-01 15:19:37 +03:00 committed by Alexandre Julliard
parent 725d3ff9f3
commit 202a1c1ef0
1 changed files with 11 additions and 0 deletions

View File

@ -875,6 +875,17 @@ static LRESULT CALLBACK BUTTON_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, L
}
break;
case BCM_SETDROPDOWNSTATE:
new_state = wParam ? BST_DROPDOWNPUSHED : 0;
if ((infoPtr->state ^ new_state) & BST_DROPDOWNPUSHED)
{
infoPtr->state &= ~BST_DROPDOWNPUSHED;
infoPtr->state |= new_state;
InvalidateRect(hWnd, NULL, FALSE);
}
break;
case BCM_SETTEXTMARGIN:
{
RECT *text_margin = (RECT *)lParam;