Skip to content
Snippets Groups Projects
Commit 31f718b8 authored by Kouji Sasaki's avatar Kouji Sasaki Committed by Alexandre Julliard
Browse files

Added handling of WM_ENABLE message.

parent d6be549a
No related branches found
No related tags found
No related merge requests found
......@@ -7557,6 +7557,25 @@ fail:
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:
* Erases the background of the listview control.
......@@ -9192,6 +9211,9 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_CREATE:
return LISTVIEW_Create(hwnd, (LPCREATESTRUCTW)lParam);
case WM_ENABLE:
return LISTVIEW_Enable(infoPtr, (BOOL)wParam);
case WM_ERASEBKGND:
return LISTVIEW_EraseBkgnd(infoPtr, (HDC)wParam);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment