---
name: "GetMessagePos"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.0.1-3.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/GetMessagePos"
---

# GetMessagePos(3w)

## NAME

**GetMessagePos** (USER.119)

## SYNOPSIS

DWORD GetMessagePos\
  (\
  )

## DESCRIPTION

The **[GetMessagePos(3w)](/GetMessagePos/3w.md)** function returns a long value representing a cursor position, in screen coordinates, when the last message retrieved by the **GetMessage(3w)** function occurs. The x-coordinate is in the low-order word of the return value, the y-coordinate is in the high-order word. The application can use the **MAKEPOINT(3w)** macro to obtain a **POINT** structure from the return value.

For the current cursor position, use **[GetCursorPos(3w)](/GetCursorPos/3w.md)**.

## RETURNS

Cursor position of last message on success, zero on failure.

## CONFORMANCE

ECMA-**234**, Win32

## IMPLEMENTATION

Defined in **"user\_private.h"**.

Implemented in **"dlls/user32/message.c"**.

Debug channel **"msg"**.
