type
TForm1 = class(TForm)
MonthCalendar1: TMonthCalendar;
private
{ Private declarations }
procedure WMTIMECHANGE(var Msg: TWMTimeChange); message WM_TIMECHANGE;
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}uses CommCtrl;procedure TForm1.WMTIMECHANGE(var Msg: TWMTimeChange);
var
ST: TSystemTime;
begin
DateTimeToSystemTime(Date, ST);
MonthCal_SetToday(MonthCalendar1.Handle, ST);
end;
TForm1 = class(TForm)
MonthCalendar1: TMonthCalendar;
private
{ Private declarations }
procedure WMTIMECHANGE(var Msg: TWMTimeChange); message WM_TIMECHANGE;
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}uses CommCtrl;procedure TForm1.WMTIMECHANGE(var Msg: TWMTimeChange);
var
ST: TSystemTime;
begin
DateTimeToSystemTime(Date, ST);
MonthCal_SetToday(MonthCalendar1.Handle, ST);
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货