mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 22:09:28 +02:00
LCL: Win32: fixed PaintTo for not themes enabled controls and older OS then Windows 7. Issue #25448
git-svn-id: trunk@54033 -
This commit is contained in:
parent
936f671ee4
commit
7cc7749739
@ -544,7 +544,12 @@ var
|
||||
begin
|
||||
SavedDC := SaveDC(ADC);
|
||||
MoveWindowOrgEx(ADC, X, Y);
|
||||
PrintWindow(AWinControl.Handle, ADC, 0);
|
||||
if (Windowsversion < wv7)
|
||||
or ((Windowsversion = wv7) and not ThemeServices.ThemesEnabled) then
|
||||
SendMessage(AWinControl.Handle, WM_PRINT, WParam(ADC),
|
||||
PRF_CHECKVISIBLE or PRF_CHILDREN or PRF_CLIENT or PRF_NONCLIENT or PRF_OWNED)
|
||||
else
|
||||
PrintWindow(AWinControl.Handle, ADC, 0);
|
||||
RestoreDC(ADC, SavedDC);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user