mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 09:59:20 +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;
|
end;
|
||||||
WM_NCPAINT:
|
WM_NCPAINT:
|
||||||
begin
|
begin
|
||||||
if (lWinControl <> nil) and TWin32ThemeServices(ThemeServices).ThemesEnabled and
|
if TWin32ThemeServices(ThemeServices).ThemesEnabled and
|
||||||
not (lWinControl is TCustomForm) and (lWinControl is TCustomControl) then
|
(lWinControl is TCustomControl) and not (lWinControl is TCustomForm) then
|
||||||
begin
|
begin
|
||||||
TWin32ThemeServices(ThemeServices).PaintBorder(lWinControl, True);
|
TWin32ThemeServices(ThemeServices).PaintBorder(lWinControl, True);
|
||||||
LMessage.Result := 0;
|
LMessage.Result := 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user