Added handling of WM_ENABLE message.

This commit is contained in:
Kouji Sasaki 2005-05-24 11:46:53 +00:00 committed by Alexandre Julliard
parent d6be549a76
commit 31f718b8bf
1 changed files with 22 additions and 0 deletions

View File

@ -7557,6 +7557,25 @@ fail:
return -1; return -1;
} }
/***
* DESCRIPTION:
* Enables the listview control.
*
* PARAMETER(S):
* [I] infoPtr : valid pointer to the listview structure
* [I] bEnable : specifies whether to enable or disable the window
*
* RETURN:
* SUCCESS : TRUE
* FAILURE : FALSE
*/
static BOOL LISTVIEW_Enable(LISTVIEW_INFO *infoPtr, BOOL bEnable)
{
if (infoPtr->dwStyle & LVS_OWNERDRAWFIXED)
InvalidateRect(infoPtr->hwndSelf, NULL, TRUE);
return TRUE;
}
/*** /***
* DESCRIPTION: * DESCRIPTION:
* Erases the background of the listview control. * Erases the background of the listview control.
@ -9192,6 +9211,9 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_CREATE: case WM_CREATE:
return LISTVIEW_Create(hwnd, (LPCREATESTRUCTW)lParam); return LISTVIEW_Create(hwnd, (LPCREATESTRUCTW)lParam);
case WM_ENABLE:
return LISTVIEW_Enable(infoPtr, (BOOL)wParam);
case WM_ERASEBKGND: case WM_ERASEBKGND:
return LISTVIEW_EraseBkgnd(infoPtr, (HDC)wParam); return LISTVIEW_EraseBkgnd(infoPtr, (HDC)wParam);