Jump to content

WM BUTTON2UP: Difference between revisions

From EDM2
Created page with "This message occurs when the operator releases button 2 of 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 in window coordinates relative to the bottom-left corner of the window. ;''fsHitTestres'' (USHORT) - input: Hit-test result. Provid..."
 
 
Line 35: Line 35:


==Related Messages==
==Related Messages==
* [[WM_BUTTON2UP (in Frame Controls)]]
* WM_BUTTON2UP (in Frame Controls)


[[Category:Messages]]
[[Category:Messages]]

Latest revision as of 04:05, 14 April 2025

This message occurs when the operator releases button 2 of 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 in window coordinates relative to the bottom-left corner of the window.
fsHitTestres (USHORT) - input
Hit-test result. Provides the hit-test result, which determines 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 code is 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. 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 sends the message to the owner window if it exists, otherwise it takes no action on this message other than to set rc to FALSE.

in Frame Controls

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

Related Messages

  • WM_BUTTON2UP (in Frame Controls)