术语 | getmessagepos |
释义 | GetMessagePos 语法: DWORD GetMessagePos(VOID); Return Value The return value specifies the x- and y-coordinates of the cursor position. The x-coordinate is the low order short and the y-coordinate is the high-order short. Remarks As noted above, the x-coordinate is in the low-order short of the return value; the y-coordinate is in the high-order short (both represent signed values because they can take negative values on systems with multiple monitors). If the return value is assigned to a variable, you can use the MAKEPOINTS macro to obtain a POINTS structure from the return value. You can also use the GET_X_LPARAM or GET_Y_LPARAM macro to extract the x- or y-coordinate. Important Do not use the LOWORD or HIWORD macros to extract the x- and y- coordinates of the cursor position because these macros return incorrect results on systems with multiple monitors. Systems with multiple monitors can have negative x- and y- coordinates, and LOWORD and HIWORD treat the coordinates as unsigned quantities. Function Information Minimum DLL Versionuser32.dll HeaderDeclared in Winuser.h, include Windows.h Import libraryUser32.lib Minimum operating systemsWindows 95, Windows NT 3.1 See Also Messages and Message Queues Overview , GetCursorPos , GetMessage , GetMessageTime , HIWORD , LOWORD , MAKEPOINTS , POINTS GetMessagePos功能 该GetMessagePos函数检索由GetMessage函数检索的最后一条消息光标位置。 要确定当前光标位置,请使用GetCursorPos函数。 ==英文原文==GetMessagePos Function The GetMessagePos function retrieves the cursor position for the last message retrieved by the GetMessage function. To determine the current position of the cursor, use the GetCursorPos function. Syntax DWORD GetMessagePos(VOID); Return Value The return value specifies the x- and y-coordinates of the cursor position. The x-coordinate is the low order short and the y-coordinate is the high-order short. Remarks As noted above, the x-coordinate is in the low-order short of the return value; the y-coordinate is in the high-order short (both represent signed values because they can take negative values on systems with multiple monitors). If the return value is assigned to a variable, you can use the MAKEPOINTS macro to obtain a POINTS structure from the return value. You can also use the GET_X_LPARAM or GET_Y_LPARAM macro to extract the x- or y-coordinate. Important Do not use the LOWORD or HIWORD macros to extract the x- and y- coordinates of the cursor position because these macros return incorrect results on systems with multiple monitors. Systems with multiple monitors can have negative x- and y- coordinates, and LOWORD and HIWORD treat the coordinates as unsigned quantities. Function Information Minimum DLL Versionuser32.dll HeaderDeclared in Winuser.h, include Windows.h Import libraryUser32.lib Minimum operating systemsWindows 95, Windows NT 3.1 See Also Messages and Message Queues Overview , GetCursorPos , GetMessage , GetMessageTime , HIWORD , LOWORD , MAKEPOINTS , POINTS ==原始网址==http://msdn.microsoft.com/en-us/library/ms644938(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。