Jump to content

WM BUTTON2DOWN

From EDM2
Revision as of 22:27, 13 April 2025 by Martini (talk | contribs) (Created page with "This message occurs when the operator presses button 2 on the pointing device. ==Syntax== <PRE> param1 POINTS ptspointerpos; Pointer position.: param2 USHORT fsHitTestres; Hit-test result.: USHORT fsflags; Keyboard control codes.: </PRE> ==Parameters== ;ptspointerpos (POINTS) - Input : Pointer position. The pointer position is in window coordinates relative to the bottom-left corner of the window. ;fsHitTestres (USHOR...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message occurs when the operator presses button 2 on the pointing device.

Syntax

param1
    POINTS    ptspointerpos;  /* Pointer position. */

param2
    USHORT    fsHitTestres;   /* Hit-test result. */
    USHORT    fsflags;        /* Keyboard control codes. */

Parameters

ptspointerpos (POINTS) - Input
Pointer position. The pointer position is in window coordinates relative to the bottom-left corner of the window.
fsHitTestres (USHORT) - Input
Hit-test result. fsHitTestres provides the hit-test result. It contains the value returned from the hit test process, which determined the window to be associated with this message. For details of the possible values, see WM_HITTEST.
fsflags (USHORT) - Input
Keyboard control codes. In addition to the control codes described with the WM_CHAR message, the following keyboard control codes are valid:
KC_NONE
Indicates that no key is pressed.

Returns

rc (BOOL) - returns
Processed indicator.
TRUE
Message processed
FALSE
Message ignored.

Remarks

This message is posted to the application queue associated with the window that is to receive the pointing device button information.

It is the responsibility of the application to ensure that the appropriate frame window is activated and that the focus is to the appropriate window, by using the WinSetFocus function. The keyboard control codes specified by flags reflects the keyboard state at the time the mouse message was initiated. This may or may not reflect the current keyboard state.

in Frame Controls

This message is posted to the application queue associated with the window that is to receive the pointer button information.

Default Processing

The default window procedure processes this message identically to WM_BUTTON1DOWN.

in Frame Controls

The frame control window procedure processes this message identically to WM_BUTTON1DOWN (in Frame Controls).

Related Messages

  • WM_BUTTON2DOWN (in Frame Controls)