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:
parent
725d3ff9f3
commit
202a1c1ef0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue