Skip to content

SnedMessage with WM_NCHITTEST returns HTCAPTION in the TABS #1979

Description

@RamonUnch

Sumatra PDF is THE perfect PDF reader for Windows.
However I encountered an issue while developing the AltDrag software RamonUnch/AltSnap#67.

The problem comes from the fact that Sumatra returns HTCAPTION when the WM_NCHITTEST message is sent and the lParam points towards any of the tabs.

This HTCAPTION should be returned ONLY when lParam is pointing to the title bar outside of the tabs.
When lParam points into a tab, the HTCLIENT value should be returned.

The only other program with tabs I encountered having the same problem is MS Terminal and it will be fixed at some point microsoft/terminal#9443.

Could this be fixed for Sumatra PDF as well? this would also be potentially helpful for other accessibility tools that rely on the WM_NCHITTEST messaging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions