mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-25 16:29:10 +02:00
fix compilation calendar win32
git-svn-id: trunk@6030 -
This commit is contained in:
parent
559f264877
commit
d885bc022d
@ -33,9 +33,9 @@ uses
|
|||||||
// To get as little as posible circles,
|
// To get as little as posible circles,
|
||||||
// uncomment only when needed for registration
|
// uncomment only when needed for registration
|
||||||
////////////////////////////////////////////////////
|
////////////////////////////////////////////////////
|
||||||
Calendar,
|
Calendar, SysUtils,
|
||||||
////////////////////////////////////////////////////
|
////////////////////////////////////////////////////
|
||||||
WSCalendar, WSLCLClasses;
|
WSCalendar, WSLCLClasses, Windows, Win32Def;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
@ -45,17 +45,17 @@ type
|
|||||||
private
|
private
|
||||||
protected
|
protected
|
||||||
public
|
public
|
||||||
class function GetDateTime(const ACalender: TCustomCalender): TDateTime; override;
|
class function GetDateTime(const ACalendar: TCustomCalendar): TDateTime; override;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
function TWin32WSCalender.GetDateTime(const ACalender: TCustomCalender): TDateTime;
|
function TWin32WSCalendar.GetDateTime(const ACalendar: TCustomCalendar): TDateTime;
|
||||||
var
|
var
|
||||||
ST: SystemTime;
|
ST: SystemTime;
|
||||||
begin
|
begin
|
||||||
SendMessage(ACalender.Handle, MCM_GETCURSEL, 0, LPARAM(@ST));
|
SendMessage(ACalendar.Handle, MCM_GETCURSEL, 0, LPARAM(@ST));
|
||||||
with ST do
|
with ST do
|
||||||
Result := EncodeDate(WYear,WMonth,WDay);
|
Result := EncodeDate(WYear,WMonth,WDay);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user