MiniGUI API Reference (MiniGUI-Standalone)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Macros
Messages of monthcalendar control

Macros

#define MCM_GETCURDAY   0xF300
 Gets the day number of the current selected date. More...
 
#define MCM_GETCURMONTH   0xF301
 Gets the month number of the current selected date. More...
 
#define MCM_GETCURYEAR   0xF302
 Gets the year number of the current selected date. More...
 
#define MCM_GETCURWEEKDAY   0xF303
 Gets the weekday number of the current selected date. More...
 
#define MCM_GETCURMONLEN   0xF304
 Gets the month length of the current selected date. More...
 
#define MCM_SETCURDAY   0xF305
 Changes the day of the currently selected date. More...
 
#define MCM_SETCURMONTH   0xF306
 Changes the month of the currently selected date. More...
 
#define MCM_SETCURYEAR   0xF307
 Changes the year of the currently selected date. More...
 
#define MCM_SETTODAY   0xF308
 Sets the currently selected date as the date of "today". More...
 
#define MCM_GETFIRSTWEEKDAY   0xF309
 Gets the weekday of the first day of this month. More...
 
#define MCM_GETCURDATE   0xF310
 Gets the currently selected date. More...
 
#define MCM_GETTODAY   0xF311
 Gets the date of "today". More...
 
#define MCM_GETMINREQRECTW   0xF312
 Gets the minimum width required to display a full month in a month calendar control. More...
 
#define MCM_GETMINREQRECTH   0xF313
 Gets the minimum height required to display a full month in a month calendar control. More...
 
#define MCM_SETCURDATE   0xF314
 Sets the currently selected date. More...
 
#define MCM_SETCOLOR   0xF315
 Sets the color of the monthcalendar control. More...
 
#define MCM_GETCOLOR   0xF316
 Gets the color of the monthcalendar control. More...
 
#define MCM_SETDAYCOLOR   0xF317
 Sets the color of a specified date . More...
 
#define MCM_CLEARDAYCOLOR   0xF318
 Clears the color of a specified month view . More...
 

Detailed Description

Macro Definition Documentation

#define MCM_CLEARDAYCOLOR   0xF318

Clears the color of a specified month view .

1 MCM_CLEARDAYCOLOR
2 
3 wParam = 0;
4 lParam = 0;

Definition at line 463 of file monthcal.h.

#define MCM_GETCOLOR   0xF316

Gets the color of the monthcalendar control.

1 MCM_GETCOLOR
2 PMCCOLORINFO color;
3 
4 wParam = 0;
5 lParam = (LPARAM)color;
Parameters
colorPointer to the MCCOLORINFO structure retreiving the color info.

Definition at line 432 of file monthcal.h.

#define MCM_GETCURDATE   0xF310

Gets the currently selected date.

1 MCM_GETCURDATE
2 PSYSTEMTIME pcurdate;
3 
4 wParam = 0;
5 lParam = (LPARAM)pcurdate;
Parameters
pcurdatePointer to the SYSTEMTIME structure to retreive the date.

Definition at line 333 of file monthcal.h.

#define MCM_GETCURDAY   0xF300

Gets the day number of the current selected date.

1 MCM_GETCURDAY
2 
3 wParam = 0;
4 lParam = 0;
Returns
The day number of the current selected date.

Definition at line 181 of file monthcal.h.

#define MCM_GETCURMONLEN   0xF304

Gets the month length of the current selected date.

1 MCM_GETCURMONLEN
2 
3 wParam = 0;
4 lParam = 0;
Returns
The month length of the current selected date.

Definition at line 241 of file monthcal.h.

#define MCM_GETCURMONTH   0xF301

Gets the month number of the current selected date.

1 MCM_GETCURMONTH
2 
3 wParam = 0;
4 lParam = 0;
Returns
The month number of the current selected date.

Definition at line 196 of file monthcal.h.

#define MCM_GETCURWEEKDAY   0xF303

Gets the weekday number of the current selected date.

1 MCM_GETCURWEEKDAY
2 
3 wParam = 0;
4 lParam = 0;
Returns
The weekday number of the current selected date.

Definition at line 226 of file monthcal.h.

#define MCM_GETCURYEAR   0xF302

Gets the year number of the current selected date.

1 MCM_GETCURYEAR
2 
3 wParam = 0;
4 lParam = 0;
Returns
The year number of the current selected date.

Definition at line 211 of file monthcal.h.

#define MCM_GETFIRSTWEEKDAY   0xF309

Gets the weekday of the first day of this month.

1 MCM_GETFIRSTWEEKDAY
2 
3 wParam = 0;
4 lParam = 0;
Returns
The weekday of the first day.

Definition at line 317 of file monthcal.h.

#define MCM_GETMINREQRECTH   0xF313

Gets the minimum height required to display a full month in a month calendar control.

1 MCM_GETMINREQRECTH
2 
3 wParam = 0;
4 lParam = 0;
Returns
The minimum height required to dispaly a full month.

Definition at line 382 of file monthcal.h.

#define MCM_GETMINREQRECTW   0xF312

Gets the minimum width required to display a full month in a month calendar control.

1 MCM_GETMINREQRECTW
2 
3 wParam = 0;
4 lParam = 0;
Returns
The minimum width required to dispaly a full month.

Definition at line 366 of file monthcal.h.

#define MCM_GETTODAY   0xF311

Gets the date of "today".

1 MCM_GETTODAY
2 PSYSTEMTIME pcurdate;
3 
4 wParam = 0;
5 lParam = (LPARAM)pcurdate;
Parameters
pcurdatePointer to the SYSTEMTIME structure to retreive the date of "today".

Definition at line 350 of file monthcal.h.

#define MCM_SETCOLOR   0xF315

Sets the color of the monthcalendar control.

1 MCM_SETCOLOR
2 PMCCOLORINFO newcolor;
3 
4 wParam = 0;
5 lParam = (LPARAM)newcolor;
Parameters
newcolorPointer to the MCCOLORINFO structure storing the vaules of the new color info.

Definition at line 416 of file monthcal.h.

#define MCM_SETCURDATE   0xF314

Sets the currently selected date.

1 MCM_SETCURDATE
2 PSYSTEMTIME pcurdate;
3 
4 wParam = 0;
5 lParam = (LPARAM)pcurdate;
Parameters
pcurdatePointer to the SYSTEMTIME structure storing the values of the current selected date.

Definition at line 399 of file monthcal.h.

#define MCM_SETCURDAY   0xF305

Changes the day of the currently selected date.

1 MCM_SETCURDAY
2 int newday;
3 
4 wParam = (WPARAM)newday;
5 lParam = 0;
Parameters
newdayThe new day number of the currently selected date.

Definition at line 257 of file monthcal.h.

#define MCM_SETCURMONTH   0xF306

Changes the month of the currently selected date.

1 MCM_SETCURMONTH
2 int newmonth;
3 
4 wParam = (WPARAM)newmonth;
5 lParam = 0;
Parameters
newmonthThe new month number of the currently selected date.

Definition at line 273 of file monthcal.h.

#define MCM_SETCURYEAR   0xF307

Changes the year of the currently selected date.

1 MCM_SETCURYEAR
2 int newyear;
3 
4 wParam = (WPARAM)newyear;
5 lParam = 0;
Parameters
newyearThe new year number of the currently selected date.

Definition at line 289 of file monthcal.h.

#define MCM_SETDAYCOLOR   0xF317

Sets the color of a specified date .

1 MCM_SETDAYCOLOR
2 int day;
3 int color;
4 
5 wParam = day;
6 lParam = color;
Parameters
dayMonth day to set color
colorPixel color.

Definition at line 450 of file monthcal.h.

#define MCM_SETTODAY   0xF308

Sets the currently selected date as the date of "today".

1 MCM_SETTODAY
2 
3 wParam = 0;
4 lParam = 0;

Definition at line 302 of file monthcal.h.