网站首页  词典首页

请输入您要查询的函数:

 

术语 getbrushorgex
释义 GetBrushOrgEx
语法:
BOOL GetBrushOrgEx(
__in HDC hdc,
__out LPPOINT lppt
);
GetBrushOrgEx功能
该GetBrushOrgEx函数检索指定的设备环境的当前刷的起源。这个函数替换GetBrushOrg功能。
参数
hdc [in]
一个句柄,设备上下文。
lppt [out]
一个POINT结构,它接收刷起源指针,在设备坐标。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
画笔是一个位图,该系统使用的涂料填充形状的内部。
毛笔的起源是一套坐标0至7价值观,指定位图中的一个像素位置。默认刷起源的坐标是(0,0)。对于Level坐标值0对应的像素最左边的列;值7对应于最右边的列。垂直坐标值0对应最上面的像素列,该值对应于7最低层行。当系统的立场在任何行动开始画刷,它映射的画笔原产地在窗口的客户区地点,按指定的画笔来源。例如,如果原产地设置为(2,3),系统图的画笔原点(0,0)在窗口的客户区位置(2,3)。
如果应用程序使用以毛笔填写双方父母和一个子窗口配色的背景,它可能需要设立画后父窗口画笔绘画起源但在子窗口。
系统会自动跟踪所有窗口原点管理设备上下文和调整,以保持必要的图案表面对齐的刷子。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
Brushes 概述
Brush 函数

SelectObject
SetBrushOrgEx
UnrealizeObject
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetBrushOrgEx Function
The GetBrushOrgEx function retrieves the current brush origin for the specified device context. This function replaces the GetBrushOrg function.
Syntax
BOOL GetBrushOrgEx(
__in HDC hdc,
__out LPPOINT lppt
);
Parameters
hdc [in]
A handle to the device context.
lppt [out]
A pointer to a POINT structure that receives the brush origin, in device coordinates.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
A brush is a bitmap that the system uses to paint the interiors of filled shapes.
The brush origin is a set of coordinates with values between 0 and 7, specifying the location of one pixel in the bitmap. The default brush origin coordinates are (0,0). For horizontal coordinates, the value 0 corresponds to the leftmost column of pixels; the value 7 corresponds to the rightmost column. For vertical coordinates, the value 0 corresponds to the uppermost row of pixels; the value 7 corresponds to the lowermost row. When the system positions the brush at the start of any painting operation, it maps the origin of the brush to the location in the window's client area specified by the brush origin. For example, if the origin is set to (2,3), the system maps the origin of the brush (0,0) to the location (2,3) on the window's client area.
If an application uses a brush to fill the backgrounds of both a parent and a child window with matching colors, it may be necessary to set the brush origin after painting the parent window but before painting the child window.
The system automatically tracks the origin of all window-managed device contexts and adjusts their brushes as necessary to maintain an alignment of patterns on the surface.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Brushes Overview
Brush Functions
POINT
SelectObject
SetBrushOrgEx
UnrealizeObject
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144855(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 11:25:17