mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-10 09:38:22 +02:00
win32: reduce warnings and hints
git-svn-id: trunk@30015 -
This commit is contained in:
parent
f5f836b7d6
commit
1106bb17a4
@ -96,7 +96,6 @@ procedure GetWin32ControlPos(Window, Parent: HWND; var Left, Top: integer);
|
|||||||
procedure UpdateWindowStyle(Handle: HWnd; Style: integer; StyleMask: integer);
|
procedure UpdateWindowStyle(Handle: HWnd; Style: integer; StyleMask: integer);
|
||||||
function BorderStyleToWin32Flags(Style: TFormBorderStyle): DWORD;
|
function BorderStyleToWin32Flags(Style: TFormBorderStyle): DWORD;
|
||||||
function BorderStyleToWin32FlagsEx(Style: TFormBorderStyle): DWORD;
|
function BorderStyleToWin32FlagsEx(Style: TFormBorderStyle): DWORD;
|
||||||
function GetDesigningBorderStyle(const AForm: TCustomForm): TFormBorderStyle;
|
|
||||||
|
|
||||||
function AllocWindowInfo(Window: HWND): PWin32WindowInfo;
|
function AllocWindowInfo(Window: HWND): PWin32WindowInfo;
|
||||||
function DisposeWindowInfo(Window: HWND): boolean;
|
function DisposeWindowInfo(Window: HWND): boolean;
|
||||||
@ -916,15 +915,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function GetDesigningBorderStyle(const AForm: TCustomForm): TFormBorderStyle;
|
|
||||||
{$NOTE Belongs in Win32WSForms, but is needed in windowproc}
|
|
||||||
begin
|
|
||||||
if csDesigning in AForm.ComponentState then
|
|
||||||
Result := bsSizeable
|
|
||||||
else
|
|
||||||
Result := AForm.BorderStyle;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function AllocWindowInfo(Window: HWND): PWin32WindowInfo;
|
function AllocWindowInfo(Window: HWND): PWin32WindowInfo;
|
||||||
var
|
var
|
||||||
WindowInfo: PWin32WindowInfo;
|
WindowInfo: PWin32WindowInfo;
|
||||||
|
@ -2234,8 +2234,8 @@ begin
|
|||||||
Width := Right - Left;
|
Width := Right - Left;
|
||||||
Height := Bottom - Top;
|
Height := Bottom - Top;
|
||||||
end;
|
end;
|
||||||
Width := Width - 2 * Info.cxWindowBorders;
|
Width := Width - 2 * Integer(Info.cxWindowBorders);
|
||||||
Height := Height - 2 * Info.cyWindowBorders;
|
Height := Height - 2 * Integer(Info.cyWindowBorders);
|
||||||
ExcludeCaption;
|
ExcludeCaption;
|
||||||
//WriteLn('W = ', Width, ' H = ', Height);
|
//WriteLn('W = ', Width, ' H = ', Height);
|
||||||
Exit;
|
Exit;
|
||||||
|
@ -231,6 +231,14 @@ end;
|
|||||||
|
|
||||||
{ TWin32WSCustomForm }
|
{ TWin32WSCustomForm }
|
||||||
|
|
||||||
|
function GetDesigningBorderStyle(const AForm: TCustomForm): TFormBorderStyle;
|
||||||
|
begin
|
||||||
|
if csDesigning in AForm.ComponentState then
|
||||||
|
Result := bsSizeable
|
||||||
|
else
|
||||||
|
Result := AForm.BorderStyle;
|
||||||
|
end;
|
||||||
|
|
||||||
function CalcBorderIconsFlags(const AForm: TCustomForm): DWORD;
|
function CalcBorderIconsFlags(const AForm: TCustomForm): DWORD;
|
||||||
var
|
var
|
||||||
BorderIcons: TBorderIcons;
|
BorderIcons: TBorderIcons;
|
||||||
|
Loading…
Reference in New Issue
Block a user