Add partial handler for WM_PRINTCLIENT.

This commit is contained in:
Ulrich Czekalla 2004-12-20 16:55:57 +00:00 committed by Alexandre Julliard
parent 08dbbeb015
commit e05dcc2975
1 changed files with 33 additions and 0 deletions

View File

@ -8346,6 +8346,36 @@ static LRESULT LISTVIEW_Paint(LISTVIEW_INFO *infoPtr, HDC hdc)
return 0;
}
/***
* DESCRIPTION:
* Paints/Repaints the listview control.
*
* PARAMETER(S):
* [I] infoPtr : valid pointer to the listview structure
* [I] hdc : device context handle
* [I] options : drawing options
*
* RETURN:
* Zero
*/
static LRESULT LISTVIEW_PrintClient(LISTVIEW_INFO *infoPtr, HDC hdc, DWORD options)
{
FIXME("Partial Stub: (hdc=%p options=0x%08lx)\n", hdc, options);
if ((options & PRF_CHECKVISIBLE) && !IsWindowVisible(infoPtr->hwndSelf))
return 0;
if (options & PRF_ERASEBKGND)
LISTVIEW_EraseBkgnd(infoPtr, hdc);
if (options & PRF_CLIENT)
LISTVIEW_Paint(infoPtr, hdc);
return 0;
}
/***
* DESCRIPTION:
* Processes double click messages (right mouse button).
@ -9193,6 +9223,9 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_NOTIFYFORMAT:
return LISTVIEW_NotifyFormat(infoPtr, (HWND)wParam, (INT)lParam);
case WM_PRINTCLIENT:
return LISTVIEW_PrintClient(infoPtr, (HDC)wParam, (DWORD)lParam);
case WM_PAINT:
return LISTVIEW_Paint(infoPtr, (HDC)wParam);