Commit 4e08a7e5 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

comctl32/button: Implement BCM_GETSPLITINFO.

parent 82d39e18
......@@ -466,6 +466,9 @@ static LRESULT CALLBACK BUTTON_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, L
infoPtr->hwnd = hWnd;
infoPtr->parent = cs->hwndParent;
infoPtr->style = cs->style;
infoPtr->split_style = BCSS_STRETCH;
infoPtr->glyph = (HIMAGELIST)0x36; /* Marlett down arrow char code */
infoPtr->glyph_size.cx = get_default_glyph_size(infoPtr);
return DefWindowProcW(hWnd, uMsg, wParam, lParam);
}
......@@ -880,6 +883,22 @@ static LRESULT CALLBACK BUTTON_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, L
return TRUE;
}
case BCM_GETSPLITINFO:
{
BUTTON_SPLITINFO *info = (BUTTON_SPLITINFO*)lParam;
if (!info) return FALSE;
if (info->mask & BCSIF_STYLE)
info->uSplitStyle = infoPtr->split_style;
if (info->mask & (BCSIF_GLYPH | BCSIF_IMAGE))
info->himlGlyph = infoPtr->glyph;
if (info->mask & BCSIF_SIZE)
info->size = infoPtr->glyph_size;
return TRUE;
}
case BM_GETCHECK:
return infoPtr->state & 3;
......
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