TreeView.processSubclassed

Turn WM_CONTEXTMENU into onContextMenu. The message is raised by a right-click and by the keyboard (Apps key / Shift+F10); the latter arrives with a position of (-1, -1), in which case the menu is anchored at the selected node so a keyboard user gets the menu where focus is.

class TreeView
override
bool
processSubclassed
(
UINT msg
,
WPARAM wParam
,
LPARAM lParam
,
ref LRESULT result
)

Meta