网站首页  词典首页

请输入您要查询的函数:

 

术语 beginpaint
释义 BeginPaint
语法:
HDC BeginPaint(
__in HWND hwnd,
__out LPPAINTSTRUCT lpPaint
);
BeginPaint函数
在BeginPaint函数准备了绘画指定的窗口,填补与绘画有关的资料PAINTSTRUCT结构。
参数
hwnd [in]
窗口句柄进行重新绘制。
lpPaint [out]
指针PAINTSTRUCT结构,将获得绘画资料。
返回值
如果函数成功,返回值是一个句柄指定窗口的显示设备上下文。
如果函数失败,返回值为NULL,表示没有显示设备上下文可用。
备注
BeginPaint函数的自动设置该设备的情况下,以排除剪辑区域以外的更新区域的任何地区。此更新地区则是由InvalidateRect或InvalidateRgn功能和系统后大小,移动,创建,滚动,或任何其他操作,影响客户区。如果更新区域对擦除标记,调用BeginPaint WM _ ERASEBKGND消息发送给窗口。
应用程序不应调用除了响应WM_PAINT消息调用BeginPaint。每次调用BeginPaint呼叫必须与相应的EndPaint函数调用。
如果插入的面积,以油漆,调用BeginPaint自动隐藏的插入,以防止它被删除。
如果窗口的类有一个背景刷,调用BeginPaint使用该刷清除,然后返回更新的区域背景。
实例
有关示例,请参见图在客户端区。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
绘画和绘图概述
绘画和绘图功能
EndPaint
InvalidateRect
InvalidateRgn
PAINTSTRUCT
ValidateRect
ValidateRgn
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==BeginPaint Function
The BeginPaint function prepares the specified window for painting and fills a PAINTSTRUCT structure with information about the painting.
Syntax
HDC BeginPaint(
__in HWND hwnd,
__out LPPAINTSTRUCT lpPaint
);
Parameters
hwnd [in]
Handle to the window to be repainted.
lpPaint [out]
Pointer to the PAINTSTRUCT structure that will receive painting information.
Return Value
If the function succeeds, the return value is the handle to a display device context for the specified window.
If the function fails, the return value is NULL, indicating that no display device context is available.
Remarks
The BeginPaint function automatically sets the clipping region of the device context to exclude any area outside the update region. The update region is set by the InvalidateRect or InvalidateRgn function and by the system after sizing, moving, creating, scrolling, or any other operation that affects the client area. If the update region is marked for erasing, BeginPaint sends a WM_ERASEBKGND message to the window.
An application should not call BeginPaint except in response to a WM_PAINT message. Each call to BeginPaint must have a corresponding call to the EndPaint function.
If the caret is in the area to be painted, BeginPaint automatically hides the caret to prevent it from being erased.
If the window's class has a background brush, BeginPaint uses that brush to erase the background of the update region before returning.
Examples
For an example, see Drawing in the Client Area .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll
See Also
Painting and Drawing Overview
Painting and Drawing Functions
EndPaint
InvalidateRect
InvalidateRgn
PAINTSTRUCT
ValidateRect
ValidateRgn
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183362(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:26:40