Nikolay Sivov : comctl32/monthcal: Add separate handler for WM_PRINTCLIENT.

Alexandre Julliard julliard at winehq.org
Tue Oct 13 10:52:53 CDT 2009


Module: wine
Branch: master
Commit: e58b5349fbb040032da86bfe5542fedc075e4b68
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e58b5349fbb040032da86bfe5542fedc075e4b68

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Tue Oct 13 04:21:27 2009 +0400

comctl32/monthcal: Add separate handler for WM_PRINTCLIENT.

---

 dlls/comctl32/monthcal.c |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c
index 8440e15..67a0363 100644
--- a/dlls/comctl32/monthcal.c
+++ b/dlls/comctl32/monthcal.c
@@ -2123,6 +2123,23 @@ MONTHCAL_EraseBkgnd(const MONTHCAL_INFO *infoPtr, HDC hdc)
 }
 
 static LRESULT
+MONTHCAL_PrintClient(MONTHCAL_INFO *infoPtr, HDC hdc, DWORD options)
+{
+  FIXME("Partial Stub: (hdc=%p options=0x%08x)\n", hdc, options);
+
+  if ((options & PRF_CHECKVISIBLE) && !IsWindowVisible(infoPtr->hwndSelf))
+      return 0;
+
+  if (options & PRF_ERASEBKGND)
+      MONTHCAL_EraseBkgnd(infoPtr, hdc);
+
+  if (options & PRF_CLIENT)
+      MONTHCAL_Paint(infoPtr, hdc);
+
+  return 0;
+}
+
+static LRESULT
 MONTHCAL_SetFocus(const MONTHCAL_INFO *infoPtr)
 {
   TRACE("\n");
@@ -2534,10 +2551,12 @@ MONTHCAL_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
   case WM_LBUTTONUP:
     return MONTHCAL_LButtonUp(infoPtr, lParam);
 
-  case WM_PRINTCLIENT:
   case WM_PAINT:
     return MONTHCAL_Paint(infoPtr, (HDC)wParam);
 
+  case WM_PRINTCLIENT:
+    return MONTHCAL_PrintClient(infoPtr, (HDC)wParam, (DWORD)lParam);
+
   case WM_ERASEBKGND:
     return MONTHCAL_EraseBkgnd(infoPtr, (HDC)wParam);
 




More information about the wine-cvs mailing list