mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 17:55:55 +02:00
win32: refactor checks in WM_NCPAINT to avoid redundancy
git-svn-id: trunk@52630 -
This commit is contained in:
parent
38240c91fc
commit
df4030e5cf
@ -2407,8 +2407,8 @@ begin
|
||||
end;
|
||||
WM_NCPAINT:
|
||||
begin
|
||||
if (lWinControl <> nil) and TWin32ThemeServices(ThemeServices).ThemesEnabled and
|
||||
not (lWinControl is TCustomForm) and (lWinControl is TCustomControl) then
|
||||
if TWin32ThemeServices(ThemeServices).ThemesEnabled and
|
||||
(lWinControl is TCustomControl) and not (lWinControl is TCustomForm) then
|
||||
begin
|
||||
TWin32ThemeServices(ThemeServices).PaintBorder(lWinControl, True);
|
||||
LMessage.Result := 0;
|
||||
|
Loading…
Reference in New Issue
Block a user