Commit 202a1c1e authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

comctl32/button: Implement BCM_SETDROPDOWNSTATE.

parent 725d3ff9
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment