Datetime: Handle WM_GETFONT and WM_SETFONT
Michael Kaufmann
hallo at michael-kaufmann.ch
Sun Aug 21 08:29:31 CDT 2005
-------------- next part --------------
Index: datetime.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/datetime.c,v
retrieving revision 1.60
diff -u -r1.60 datetime.c
--- datetime.c 24 May 2005 12:34:30 -0000 1.60
+++ datetime.c 21 Aug 2005 13:17:26 -0000
@@ -1164,6 +1164,17 @@
static LRESULT
+DATETIME_SetFont (DATETIME_INFO *infoPtr, HFONT font, BOOL repaint)
+{
+ infoPtr->hFont = font;
+
+ if (repaint) {
+ InvalidateRect(infoPtr->hwndSelf, NULL, TRUE);
+ }
+}
+
+
+static LRESULT
DATETIME_Create (HWND hwnd, LPCREATESTRUCTW lpcs)
{
static const WCHAR SysMonthCal32W[] = { 'S', 'y', 's', 'M', 'o', 'n', 't', 'h', 'C', 'a', 'l', '3', '2', 0 };
@@ -1314,6 +1325,12 @@
case WM_STYLECHANGED:
return DATETIME_StyleChanged(infoPtr, wParam, (LPSTYLESTRUCT)lParam);
+ case WM_SETFONT:
+ return DATETIME_SetFont(infoPtr, (HFONT)wParam, (BOOL)lParam);
+
+ case WM_GETFONT:
+ return (LRESULT) infoPtr->hFont;
+
default:
if ((uMsg >= WM_USER) && (uMsg < WM_APP))
ERR("unknown msg %04x wp=%08x lp=%08lx\n",
More information about the wine-patches
mailing list