Richard Bradbrook : comctl32: Fix to ComboBoxEx processing of WM_ENABLE message.
Alexandre Julliard
julliard at winehq.org
Wed Aug 3 12:48:13 CDT 2011
Module: wine
Branch: master
Commit: f9d9720d251567e2e9142c078f65095f8e980609
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f9d9720d251567e2e9142c078f65095f8e980609
Author: Richard Bradbrook <richard at bradders2000.co.uk>
Date: Sun Jul 31 18:06:25 2011 +0100
comctl32: Fix to ComboBoxEx processing of WM_ENABLE message.
---
dlls/comctl32/comboex.c | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/comboex.c b/dlls/comctl32/comboex.c
index b8cb359..efdea6a 100644
--- a/dlls/comctl32/comboex.c
+++ b/dlls/comctl32/comboex.c
@@ -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);
More information about the wine-cvs
mailing list