Commit f9d9720d authored by Richard Bradbrook's avatar Richard Bradbrook Committed by Alexandre Julliard

comctl32: Fix to ComboBoxEx processing of WM_ENABLE message.

parent 7e309601
......@@ -1598,6 +1598,22 @@ static LRESULT COMBOEX_Destroy (COMBOEX_INFO *infoPtr)
}
static LRESULT COMBOEX_Enable (COMBOEX_INFO *infoPtr, BOOL enable)
{
TRACE("hwnd=%p, enable=%s\n", infoPtr->hwndSelf, enable ? "TRUE":"FALSE");
if (infoPtr->hwndEdit)
EnableWindow(infoPtr->hwndEdit, enable);
EnableWindow(infoPtr->hwndCombo, enable);
/* Force the control to repaint when the enabled state changes. */
InvalidateRect(infoPtr->hwndSelf, NULL, TRUE);
return 1;
}
static LRESULT COMBOEX_MeasureItem (COMBOEX_INFO const *infoPtr, MEASUREITEMSTRUCT *mis)
{
static const WCHAR strW[] = { 'W', 0 };
......@@ -2278,6 +2294,9 @@ COMBOEX_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_DESTROY:
return COMBOEX_Destroy (infoPtr);
case WM_ENABLE:
return COMBOEX_Enable (infoPtr, (BOOL)wParam);
case WM_MEASUREITEM:
return COMBOEX_MeasureItem (infoPtr, (MEASUREITEMSTRUCT *)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