comctl32: Fix to ComboBoxEx processing of WM_ENABLE message.

This commit is contained in:
Richard Bradbrook 2011-07-31 18:06:25 +01:00 committed by Alexandre Julliard
parent 7e309601f3
commit f9d9720d25
1 changed files with 19 additions and 0 deletions

View File

@ -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);