mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 03:00:30 +01:00
win32 interface: fixed compilation with fpc 2.2.0 and 2.3.1
git-svn-id: trunk@14134 -
This commit is contained in:
parent
0167c70d4d
commit
a630267f5b
@ -43,9 +43,11 @@ begin
|
||||
end;
|
||||
|
||||
function TWin32MemoStrings.GetTextStr: string;
|
||||
{$ifndef WindowsUnicodeSupport}
|
||||
var
|
||||
CapLen: dword;
|
||||
Caption: PChar;
|
||||
{$endif}
|
||||
begin
|
||||
{$ifdef WindowsUnicodeSupport}
|
||||
Result := win32proc.GetControlText(fHandle);
|
||||
|
||||
@ -33,7 +33,7 @@ uses
|
||||
// To get as little as posible circles,
|
||||
// uncomment only when needed for registration
|
||||
////////////////////////////////////////////////////
|
||||
Windows, Classes, Buttons, Graphics, GraphType, Controls,
|
||||
CommCtrl, Windows, Classes, Buttons, Graphics, GraphType, Controls,
|
||||
////////////////////////////////////////////////////
|
||||
WSProc, WSControls, WSButtons, WSLCLClasses,
|
||||
Win32WSControls, Win32WSImgList, LCLType, Themes;
|
||||
|
||||
@ -33,7 +33,7 @@ uses
|
||||
// To get as little as posible circles,
|
||||
// uncomment only when needed for registration
|
||||
////////////////////////////////////////////////////
|
||||
Windows, Classes, Controls, Graphics,
|
||||
CommCtrl, Windows, Classes, Controls, Graphics,
|
||||
////////////////////////////////////////////////////
|
||||
WSControls, WSLCLClasses, SysUtils, Win32Proc, Win32Extra, WSProc,
|
||||
{ TODO: needs to move }
|
||||
|
||||
@ -35,6 +35,9 @@ uses
|
||||
////////////////////////////////////////////////////
|
||||
// rtl
|
||||
Windows, ShellApi, ActiveX, SysUtils, Classes,
|
||||
{$IFNDEF VER2_2}
|
||||
commdlg,
|
||||
{$ENDIF}
|
||||
// lcl
|
||||
LCLProc, LCLType, Dialogs, Controls, Graphics, Forms,
|
||||
// ws
|
||||
@ -755,7 +758,11 @@ begin
|
||||
begin
|
||||
LStructSize := sizeof(TChooseFont);
|
||||
HWndOwner := GetOwnerHandle(ACommonDialog);
|
||||
LPLogFont := Windows.LPLOGFONT(@LF);
|
||||
{$ifndef ver2_2}
|
||||
LPLogFont := commdlg.PLOGFONT(@LF);
|
||||
{$else}
|
||||
LPLogFont := windows.PLOGFONT(@LF);
|
||||
{$endif}
|
||||
Flags := GetFlagsFromOptions(Options);
|
||||
Flags := Flags or CF_INITTOLOGFONTSTRUCT or CF_BOTH;
|
||||
RGBColors := Font.Color;
|
||||
|
||||
@ -34,7 +34,7 @@ uses
|
||||
// uncomment only when needed for registration
|
||||
////////////////////////////////////////////////////
|
||||
// rtl
|
||||
Windows, {CommCtrl, }SysUtils, Classes,
|
||||
CommCtrl, Windows, SysUtils, Classes,
|
||||
// lcl
|
||||
ImgList, GraphType, Graphics, LCLType,
|
||||
// ws
|
||||
|
||||
@ -33,10 +33,11 @@ uses
|
||||
// To get as little as posible circles,
|
||||
// uncomment only when needed for registration
|
||||
////////////////////////////////////////////////////
|
||||
Windows, CommCtrl, Win32Extra,
|
||||
Spin, Controls, StdCtrls, LCLType,
|
||||
////////////////////////////////////////////////////
|
||||
WSSpin, WSLCLClasses, Windows, Win32Int, Win32Extra, Win32Proc,
|
||||
Win32WSStdCtrls, Win32WSControls;
|
||||
WSSpin, WSLCLClasses,
|
||||
Win32Int, Win32Proc, Win32WSStdCtrls, Win32WSControls;
|
||||
|
||||
type
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user