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

Macros

#define MCM_GETCURDAY   0xF300
 Get the day number of the current selected date. More...
 
#define MCM_GETCURMONTH   0xF301
 Get the month number of the current selected date. More...
 
#define MCM_GETCURYEAR   0xF302
 Get the year number of the current selected date. More...
 
#define MCM_GETCURWEEKDAY   0xF303
 Get the weekday number of the current selected date. More...
 
#define MCM_GETCURMONLEN   0xF304
 Get 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
 Set the currently selected date as the date of "today". More...
 
#define MCM_GETFIRSTWEEKDAY   0xF309
 Get the weekday of the first day of this month. More...
 
#define MCM_GETCURDATE   0xF310
 Get the currently selected date. More...
 
#define MCM_GETTODAY   0xF311
 Get the date of "today". More...
 
#define MCM_GETMINREQRECTW   0xF312
 Get the minimum width required to display a full month in a month calendar control. More...
 
#define MCM_GETMINREQRECTH   0xF313
 Get the minimum height required to display a full month in a month calendar control. More...
 
#define MCM_SETCURDATE   0xF314
 Set the currently selected date. More...
 
#define MCM_SETCOLOR   0xF315
 Set the color of the monthcalendar control. More...
 
#define MCM_GETCOLOR   0xF316
 Get the color of the monthcalendar control. More...
 
#define MCM_SETDAYCOLOR   0xF317
 Set 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

Get 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

Get 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

Get 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

Get 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

Get 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

Get 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

Get 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

Get 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

Get 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

Get 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

Get 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

Set 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

Set 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

Set 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

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

wParam = 0;
lParam = 0;

Definition at line 314 of file monthcal.h.

MCM_CLEARDAYCOLOR
#define MCM_CLEARDAYCOLOR
Clears the color of a specified month view .
Definition: monthcal.h:475
WPARAM
UINT_PTR WPARAM
A type definition for the first message paramter.
Definition: common.h:706
MCM_SETCURDATE
#define MCM_SETCURDATE
Set the currently selected date.
Definition: monthcal.h:411
MCM_SETCURYEAR
#define MCM_SETCURYEAR
Changes the year of the currently selected date.
Definition: monthcal.h:301
MCM_GETCOLOR
#define MCM_GETCOLOR
Get the color of the monthcalendar control.
Definition: monthcal.h:444
MCM_SETCURMONTH
#define MCM_SETCURMONTH
Changes the month of the currently selected date.
Definition: monthcal.h:285
_MCCOLORINFO
Definition: monthcal.h:105
MCM_GETCURWEEKDAY
#define MCM_GETCURWEEKDAY
Get the weekday number of the current selected date.
Definition: monthcal.h:238
MCM_GETCURDATE
#define MCM_GETCURDATE
Get the currently selected date.
Definition: monthcal.h:345
_SYSTEMTIME
Definition: monthcal.h:87
MCM_SETDAYCOLOR
#define MCM_SETDAYCOLOR
Set the color of a specified date .
Definition: monthcal.h:462
MCM_GETCURMONLEN
#define MCM_GETCURMONLEN
Get the month length of the current selected date.
Definition: monthcal.h:253
MCM_GETCURMONTH
#define MCM_GETCURMONTH
Get the month number of the current selected date.
Definition: monthcal.h:208
MCM_SETTODAY
#define MCM_SETTODAY
Set the currently selected date as the date of "today".
Definition: monthcal.h:314
MCM_GETCURDAY
#define MCM_GETCURDAY
Get the day number of the current selected date.
Definition: monthcal.h:193
MCM_SETCOLOR
#define MCM_SETCOLOR
Set the color of the monthcalendar control.
Definition: monthcal.h:428
MCM_GETTODAY
#define MCM_GETTODAY
Get the date of "today".
Definition: monthcal.h:362
MCM_GETCURYEAR
#define MCM_GETCURYEAR
Get the year number of the current selected date.
Definition: monthcal.h:223
MCM_GETMINREQRECTH
#define MCM_GETMINREQRECTH
Get the minimum height required to display a full month in a month calendar control.
Definition: monthcal.h:394
LPARAM
UINT_PTR LPARAM
A type definition for the second message paramter.
Definition: common.h:712
MCM_SETCURDAY
#define MCM_SETCURDAY
Changes the day of the currently selected date.
Definition: monthcal.h:269
MCM_GETMINREQRECTW
#define MCM_GETMINREQRECTW
Get the minimum width required to display a full month in a month calendar control.
Definition: monthcal.h:378
MCM_GETFIRSTWEEKDAY
#define MCM_GETFIRSTWEEKDAY
Get the weekday of the first day of this month.
Definition: monthcal.h:329