Skip to content

Paint into device context via PrintTo or WM_PRINT #632

Open
@Deeem2031

Description

@Deeem2031

Hello, i'm trying to use the virtual-treeview and paint a copy of it (and other controls) into a panel.
To accomplish this i used the TWinControl.PaintTo-routine which works well with other controls but the virtual-treeview is missing the header when using PaintTo.
I did some research but couldn't figure out why it is missing. Besides that I tried using WM_PRINT, which seems to work better as it does paint the header but kinda messes with the border.
So both ways aren't perfect.
I uploaded a delphi 10.1 project to demonstrate the problem on my personal webspace (as github seems to refuse it for no apparent reason...): VirtualTreeCopy.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPull Requests InvitedThere are no current plans to address the issue, but we would be happy if someone supplies a PR.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions