Alistair Leslie-Hughes : include: Added missing MonthCal_* defines.
Alexandre Julliard
julliard at winehq.org
Thu Aug 1 17:16:47 CDT 2019
Module: wine
Branch: master
Commit: c388eec1a93098b2efe3e8522a05b52aee445be7
URL: https://source.winehq.org/git/wine.git/?a=commit;h=c388eec1a93098b2efe3e8522a05b52aee445be7
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Thu Aug 1 03:29:03 2019 +0000
include: Added missing MonthCal_* defines.
Also defines struct MCGRIDINFO need for #defines.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
include/commctrl.h | 39 ++++++++++++++++++++++++++++++++++++++-
1 file changed, 38 insertions(+), 1 deletion(-)
diff --git a/include/commctrl.h b/include/commctrl.h
index d8ba974..0f0d83c 100644
--- a/include/commctrl.h
+++ b/include/commctrl.h
@@ -4790,6 +4790,11 @@ static const WCHAR MONTHCAL_CLASSW[] = { 'S','y','s',
#define GMR_VISIBLE 0
#define GMR_DAYSTATE 1
+#define MCMV_MONTH 0
+#define MCMV_YEAR 1
+#define MCMV_DECADE 2
+#define MCMV_CENTURY 3
+#define MCMV_MAX MCMV_CENTURY
/* Month calendar's structures */
@@ -4826,6 +4831,21 @@ typedef struct tagNMDAYSTATE
LPMONTHDAYSTATE prgDayState;
} NMDAYSTATE, *LPNMDAYSTATE;
+typedef struct tagMCGRIDINFO
+{
+ UINT cbSize;
+ DWORD dwPart;
+ DWORD dwFlags;
+ INT iCalendar;
+ INT iRow;
+ INT iCol;
+ BOOL bSelected;
+ SYSTEMTIME stStart;
+ SYSTEMTIME stEnd;
+ RECT rc;
+ WCHAR *pszName;
+ SIZE_T cchName;
+} MCGRIDINFO, *PMCGRIDINFO;
/* macros */
@@ -4875,7 +4895,24 @@ typedef struct tagNMDAYSTATE
(BOOL)SNDMSG((hwnd), MCM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0)
#define MonthCal_GetUnicodeFormat(hwnd) \
(BOOL)SNDMSG((hwnd), MCM_GETUNICODEFORMAT, 0, 0)
-
+#define MonthCal_SetCALID(hmc, calid) \
+ SNDMSG(hmc, MCM_SETCALID, (WPARAM)(calid), 0)
+#define MonthCal_GetCALID(hmc) \
+ (CALID)SNDMSG(hmc, MCM_GETCALID, 0, 0)
+#define MonthCal_GetCalendarCount(hmc) \
+ (DWORD)SNDMSG(hmc, MCM_GETCALENDARCOUNT, 0, 0)
+#define MonthCal_GetCurrentView(hmc) \
+ (DWORD)SNDMSG(hmc, MCM_GETCURRENTVIEW, 0, 0)
+#define MonthCal_SetCurrentView(hmc, view) \
+ (BOOL)SNDMSG(hmc, MCM_SETCURRENTVIEW, 0, (LPARAM)view)
+#define MonthCal_SizeRectToMin(hmc, prc) \
+ SNDMSG(hmc, MCM_SIZERECTTOMIN, 0, (LPARAM)prc)
+#define MonthCal_GetCalendarBorder(hmc) \
+ (INT)SNDMSG(hmc, MCM_GETCALENDARBORDER, 0, 0)
+#define MonthCal_SetCalendarBorder(hmc, reset, xy) \
+ SNDMSG(hmc, MCM_SETCALENDARBORDER, (WPARAM)reset, (LPARAM)xy)
+#define MonthCal_GetCalendarGridInfo(hmc, info) \
+ (BOOL)SNDMSG(hmc, MCM_GETCALENDARGRIDINFO, 0, (LPARAM)(PMCGRIDINFO)info)
/**************************************************************************
* Date and time picker control
More information about the wine-cvs
mailing list