mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 02:39:37 +02:00
lcl, win32: formatting + misc
git-svn-id: trunk@16344 -
This commit is contained in:
parent
2b8043dbe0
commit
0231a67f14
@ -165,7 +165,7 @@ end;
|
||||
|
||||
procedure TCustomLabel.TextChanged;
|
||||
begin
|
||||
Invalidate;
|
||||
invalidate;
|
||||
InvalidatePreferredSize;
|
||||
if (Parent<>nil) and Parent.AutoSize then
|
||||
Parent.AdjustSize;
|
||||
|
@ -19,7 +19,6 @@
|
||||
// {$C+}
|
||||
// {$DEFINE ASSERT_IS_ON}
|
||||
{$ENDIF}
|
||||
|
||||
type
|
||||
TWinControlAccess = class(TWinControl);
|
||||
TCustomListViewAccess = class(TCustomListView);
|
||||
@ -1546,10 +1545,10 @@ begin
|
||||
end;
|
||||
|
||||
// disable child windows of for example groupboxes, but not of forms
|
||||
if assigned(lWinControl) and not (lWinControl is TCustomForm) then
|
||||
if Assigned(lWinControl) and not (lWinControl is TCustomForm) then
|
||||
EnableChildWindows(lWinControl, WParam<>0);
|
||||
|
||||
If (lWinControl is TCustomFloatSpinEdit) then
|
||||
if (lWinControl is TCustomFloatSpinEdit) then
|
||||
EnableFloatSpinEditBuddy(Window, WParam<>0);
|
||||
// ugly hack to give bitbtns a nice look
|
||||
// When no theming active, the internal image needs to be
|
||||
|
@ -110,11 +110,17 @@ begin
|
||||
// Common controls only need to be initialized when used
|
||||
// So they are initialized in the CreateHandle for common controls
|
||||
InitCommonControls;
|
||||
ICC.dwSize := SizeOf(TINITCOMMONCONTROLSEX);
|
||||
ICC.dwICC := ICC_DATE_CLASSES;
|
||||
if InitCommonControlsEx <> nil then
|
||||
begin
|
||||
ICC.dwSize := SizeOf(TINITCOMMONCONTROLSEX);
|
||||
|
||||
ICC.dwICC := ICC_DATE_CLASSES;
|
||||
InitCommonControlsEx(@ICC);
|
||||
|
||||
ICC.dwICC := ICC_UPDOWN_CLASS;
|
||||
InitCommonControlsEx(@ICC);
|
||||
end;
|
||||
|
||||
// Create parent of all windows, 'button on taskbar'
|
||||
{$ifdef WindowsUnicodeSupport}
|
||||
if UnicodeEnabledOS then
|
||||
|
@ -404,6 +404,8 @@ begin
|
||||
$03E7: Result := 'WM_DDE_POKE';
|
||||
$03E8: Result := 'WM_DDE_EXECUTE or WM_DDE_LAST';
|
||||
$0400: Result := 'WM_USER';
|
||||
$0469: Result := 'UDM_SETBUDDY';
|
||||
$046A: Result := 'UDM_GETBUDDY';
|
||||
$102C: Result := 'LVM_GETITEMSTATE';
|
||||
$8000: Result := 'WM_APP';
|
||||
Else
|
||||
|
Loading…
Reference in New Issue
Block a user