网站首页  词典首页

请输入您要查询的函数:

 

术语 logicaltophysicalpoint
释义 LogicalToPhysicalPoint
语法:
void LogicalToPhysicalPoint( HWND hWnd,
LPPOINT lpPoint
);
LogicalToPhysicalPoint功能
逻辑的转换点坐标,以物理坐标窗口。
参数
hWnd
[in]的窗口句柄的变换用于转换。顶层窗口都完全支持。在子窗口的情况下,只有重叠的父母与子窗口面积转换。
lpPoint
[中,out]指向一个POINT结构,逻辑坐标指定要转换。新的物理坐标复制到这种结构如果函数成功。
返回值
没有返回值。
备注
Windows Vista引入了物理坐标的概念。桌面窗口管理器(DWM)级非每英寸(dpi)当显示器是高dpi知道窗户点。在屏幕上看到该窗口对应的物理坐标。应用程序继续在逻辑空间。因此,应用程序的窗口的看法是不同的是出现在屏幕上。有规模的窗口,逻辑和物理坐标是不同的。
LogicalToPhysicalPoint是一个变革的API可以通过一个进程,声明自己是dpi的认识要求。该函数使用的hWnd参数确定的窗口和逻辑坐标的POINT结构给予计算物理坐标。
该LogicalToPhysicalPoint函数替换在客户区中的逻辑坐标与坐标点的物理结构。物理坐标是相对于左上角的屏幕一角。坐标必须hWnd内的客户区。
在所有平台,LogicalToPhysicalPoint将失败的一个窗口,已为0宽度或高度,应用程序必须首先通过调用一个非0的宽度和高度,例如,MoveWindow。在某些版本的Windows(包括Windows 7),LogicalToPhysicalPoint仍然会失败MoveWindow被称为后,作ShowWindow(SH_HIDE)调用了隐藏的窗口。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低支持操作系统 Vista
==英文原文==LogicalToPhysicalPoint Function
Converts the logical coordinates of a point in a window to physical coordinates.
Syntax
void LogicalToPhysicalPoint( HWND hWnd,
LPPOINT lpPoint
);
Parameters
hWnd
[in] Handle to the window whose transform is used for the conversion. Top level windows are fully supported. In the case of child windows, only the area of overlap between the parent and the child window is converted.
lpPoint
[in, out] Pointer to a POINT structure that specifies the logical coordinates to be converted. The new physical coordinates are copied into this structure if the function succeeds.
Return Value
No return value.
Remarks
Windows Vista introduces the concept of physical coordinates. Desktop Window Manager (DWM) scales non-dots per inch (dpi) aware windows when the display is high dpi. The window seen on the screen corresponds to the physical coordinates. The application continues to work in logical space. Therefore, the application's view of the window is different from that which appears on the screen. For scaled windows, logical and physical coordinates are different.
LogicalToPhysicalPoint is a transformation API that can be called by a process that declares itself as dpi aware. The function uses the window identified by the hWnd parameter and the logical coordinates given in the POINT structure to compute the physical coordinates.
The LogicalToPhysicalPoint function replaces the client-area logical coordinates in the POINT structure with the physical coordinates. The physical coordinates are relative to the upper-left corner of the screen. The coordinates have to be inside the client area of hWnd.
On all platforms, LogicalToPhysicalPoint will fail on a window that has either 0 width or height; an application must first establish a non-0 width and height by calling, for example, MoveWindow . On some versions of Windows (including Windows 7), LogicalToPhysicalPoint will still fail if MoveWindow has been called after a call to ShowWindow(SH_HIDE) has hidden the window.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows Vista
==原始网址==http://msdn.microsoft.com/en-us/library/ms633533(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:22:34