다음을 통해 공유


WM_LBUTTONDBLCLK (Windows Embedded CE 6.0)

1/6/2010

This message is posted when one of the following condition occurs:

  • The user double-taps the touch screen while the stylus is pressed to the touch screen in the client area of a window.
  • The user double-clicks the mouse while the cursor is located within the client area of a window.

If another window has not captured the mouse or stylus, the OS posts the message to the window beneath the stylus or mouse. If another window has captured the mouse or stylus, the OS posts the message to the window that has captured the mouse or stylus.

Syntax

WM_LBUTTONDBLCLK fwKeys = wParam; 
    xPos = LOWORD(lParam); 
    yPos = HIWORD(lParam);

Parameters

  • fwKeys
    Indicates the mouse buttons and keys that the user pressed. The following table shows the possible values, which can be combined.

    Value Description

    MK_CONTROL

    The user pressed the CTRL key.

    MK_LBUTTON

    The user pressed the left mouse button.

    MK_MBUTTON

    The user pressed the middle mouse button.

    MK_RBUTTON

    The user pressed the right mouse button.

    MK_SHIFT

    The user pressed the SHIFT key.

  • xPos
    Value of the low-order word of lParam. Specifies the x-coordinate of the cursor, relative to the upper-left corner of the client area.
  • yPos
    Value of the high-order word of lParam. Specifies the y-coordinate of the cursor, relative to the upper-left corner of the client area.

Return Value

An application should return zero if it processes this message.

Remarks

Only windows that have the CS_DBLCLKS style can receive WM_LBUTTONDBLCLK messages, which the OS generates when the user presses, releases, and again presses the left mouse button within the time limit for double-clicks for the system. Double-clicking the left mouse button actually generates the following series of four messages:

  1. WM_LBUTTONDOWN
  2. WM_LBUTTONUP
  3. WM_LBUTTONDBLCLK
  4. WM_LBUTTONUP

Requirements

Header windows.h
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

GetCapture
SetCapture
WM_LBUTTONDOWN
WM_LBUTTONUP

Other Resources

Mouse Messages