http://bugs.winehq.org/show_bug.cgi?id=3900
Summary: The macro DateTime_SetMonthCalColor is not defined. Product: Wine Version: 0.9.1. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-winelib AssignedTo: wine-bugs@winehq.org ReportedBy: andrew7webb@comcast.net
#define DateTime_SetMonthCalColor(hdp, iColor, clr) SNDMSG(hdp, DTM_SETMCCOLOR, iColor, clr)
should be added to commctrl.h around line 4773, with the rest of the DateTime macros.
PROBLEM CAUSED: Any source which has DateTime_SetMonthCalColor will fail to compile. SmartWin's tests use this function or macro.
SmartWin++ ( http://sourceforge.net/projects/smartwin/ ) is a C++ GUI library that uses WIN32, and thus should be able to be ported using Winelib. We have had some success in getting most of the sample code running, but some tests fail. I'm working through the problems slowly and will be reporting WINELIB problem as they are precisely identified.
FIX TESTED ?: Yes, I inserted this line in commctrl.h on my local machine, did a make wine & make install, and it fixed the problem.
HOW TO REPRODUCE THE PROBLEM AND CHECK THE FIX:
Fetch the latest SmartWin++ source using cvs with: cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/smartwin login cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/smartwin checkout SmartWin
Remove the two places where the code provides its own DateTime_SetMonthCalColor in WindowsHeader.h and Widget.cpp so you can see the problem.
cd SmartWin/source make -f Makefile.wine (And the libsmartwin.a library should be put into ../lib)
cd ../tests/WidgetDateTimePicker make -f Makefile.wine run (And the sample program should start running.) The Calendar's month should have a purple background, and a red title. (I know, its a bit ugly)
best regards, Andrew Webb, andrew7webb@comcast.net