Typical right-mouse-button actions such as context-sensitive menus are implemented with a tap-and-hold approach.
When the stylus touches the screen, a WM_MOUSEDOWN event fires. By periodically calling GetAsyncKeyState(VK_LBUTTON) after that event (usually in an iterative loop or with a short-duration timer) it is possible to determine if the stylus is still down.
If the stylus remains down for a specific period of time (i.e 1 second) then you can call some right-button type functionality such as creating and displaying a menu.
----------------- Chris Tacke, eMVP Applied Data Support