MiniGUI API Reference (MiniGUI-Standalone)  v4.0.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

◆ MCM_CLEARDAYCOLOR

#define MCM_CLEARDAYCOLOR   0xF318

Clears the color of a specified month view .

wParam = 0;
lParam = 0;

Definition at line 475 of file monthcal.h.

◆ MCM_GETCOLOR

#define MCM_GETCOLOR   0xF316

Gets the color of the monthcalendar control.

wParam = 0;
lParam = (LPARAM)color;
Parameters
colorPointer to the MCCOLORINFO structure retreiving the color info.

Definition at line 444 of file monthcal.h.

◆ MCM_GETCURDATE

#define MCM_GETCURDATE   0xF310

Gets the currently selected date.

PSYSTEMTIME pcurdate;
wParam = 0;
lParam = (LPARAM)pcurdate;
Parameters
pcurdatePointer to the SYSTEMTIME structure to retreive the date.

Definition at line 345 of file monthcal.h.

◆ MCM_GETCURDAY

#define MCM_GETCURDAY   0xF300

Gets the day number of the current selected date.

wParam = 0;
lParam = 0;
Returns
The day number of the current selected date.

Definition at line 193 of file monthcal.h.

◆ MCM_GETCURMONLEN

#define MCM_GETCURMONLEN   0xF304

Gets the month length of the current selected date.

wParam = 0;
lParam = 0;
Returns
The month length of the current selected date.

Definition at line 253 of file monthcal.h.

◆ MCM_GETCURMONTH

#define MCM_GETCURMONTH   0xF301

Gets the month number of the current selected date.

wParam = 0;
lParam = 0;
Returns
The month number of the current selected date.

Definition at line 208 of file monthcal.h.

◆ MCM_GETCURWEEKDAY

#define MCM_GETCURWEEKDAY   0xF303

Gets the weekday number of the current selected date.

wParam = 0;
lParam = 0;
Returns
The weekday number of the current selected date.

Definition at line 238 of file monthcal.h.

◆ MCM_GETCURYEAR

#define MCM_GETCURYEAR   0xF302

Gets the year number of the current selected date.

wParam = 0;
lParam = 0;
Returns
The year number of the current selected date.

Definition at line 223 of file monthcal.h.

◆ MCM_GETFIRSTWEEKDAY

#define MCM_GETFIRSTWEEKDAY   0xF309

Gets the weekday of the first day of this month.

wParam = 0;
lParam = 0;
Returns
The weekday of the first day.

Definition at line 329 of file monthcal.h.

◆ MCM_GETMINREQRECTH

#define MCM_GETMINREQRECTH   0xF313

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

wParam = 0;
lParam = 0;
Returns
The minimum height required to dispaly a full month.

Definition at line 394 of file monthcal.h.

◆ MCM_GETMINREQRECTW

#define MCM_GETMINREQRECTW   0xF312

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

wParam = 0;
lParam = 0;
Returns
The minimum width required to dispaly a full month.

Definition at line 378 of file monthcal.h.

◆ MCM_GETTODAY

#define MCM_GETTODAY   0xF311

Gets the date of "today".

PSYSTEMTIME pcurdate;
wParam = 0;
lParam = (LPARAM)pcurdate;
Parameters
pcurdatePointer to the SYSTEMTIME structure to retreive the date of "today".

Definition at line 362 of file monthcal.h.

◆ MCM_SETCOLOR

#define MCM_SETCOLOR   0xF315

Sets the color of the monthcalendar control.

PMCCOLORINFO newcolor;
wParam = 0;
lParam = (LPARAM)newcolor;
Parameters
newcolorPointer to the MCCOLORINFO structure storing the vaules of the new color info.

Definition at line 428 of file monthcal.h.

◆ MCM_SETCURDATE

#define MCM_SETCURDATE   0xF314

Sets the currently selected date.

PSYSTEMTIME pcurdate;
wParam = 0;
lParam = (LPARAM)pcurdate;
Parameters
pcurdatePointer to the SYSTEMTIME structure storing the values of the current selected date.

Definition at line 411 of file monthcal.h.

◆ MCM_SETCURDAY

#define MCM_SETCURDAY   0xF305

Changes the day of the currently selected date.

int newday;
wParam = (WPARAM)newday;
lParam = 0;
Parameters
newdayThe new day number of the currently selected date.

Definition at line 269 of file monthcal.h.

◆ MCM_SETCURMONTH

#define MCM_SETCURMONTH   0xF306

Changes the month of the currently selected date.

int newmonth;
wParam = (WPARAM)newmonth;
lParam = 0;
Parameters
newmonthThe new month number of the currently selected date.

Definition at line 285 of file monthcal.h.

◆ MCM_SETCURYEAR

#define MCM_SETCURYEAR   0xF307

Changes the year of the currently selected date.

int newyear;
wParam = (WPARAM)newyear;
lParam = 0;
Parameters
newyearThe new year number of the currently selected date.

Definition at line 301 of file monthcal.h.

◆ MCM_SETDAYCOLOR

#define MCM_SETDAYCOLOR   0xF317

Sets the color of a specified date .

int day;
int color;
wParam = day;
lParam = color;
Parameters
dayMonth day to set color
colorPixel color.

Definition at line 462 of file monthcal.h.

◆ MCM_SETTODAY

#define MCM_SETTODAY   0xF308

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

wParam = 0;
lParam = 0;

Definition at line 314 of file monthcal.h.