术语 | releasedc |
释义 | ReleaseDC 语法: int ReleaseDC( __in HWND hWnd, __in HDC hDC ); ReleaseDC函数 ReleaseDC函数释放该设备上下文(DC),腾出其他应用程序使用它。该ReleaseDC函数的影响取决于DC型。它释放的唯一共同和窗口区。它不以阶级或私人区议会的影响。 参数 hWnd [in] 一个句柄,窗口的DC是被释放。 hDC [in] 一个DC句柄被释放。 返回值 返回值指示是否区被释放。如果DC被释放,返回值为1。 如果DC没有公布,返回值是零。 备注 应用程序必须调用每名来GetWindowDC函数调用和ReleaseDC函数为每个GetDC函数,检索一个共同的直流电话。 应用程序无法使用ReleaseDC函数释放这是通过调用CreateDC函数创建区,而是必须使用DeleteDC函数。 ReleaseDC必须调用的线程中调用GetDC。 实例 有关示例,请参见缩放图像。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinuser.h(头文件:winuser.h) LibraryUser32.lib DLLUser32.dll 参见 设备上下文概述 设备上下文函数 CreateDC DeleteDC GetDC GetWindowDC 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==ReleaseDC Function The ReleaseDC function releases a device context (DC), freeing it for use by other applications. The effect of the ReleaseDC function depends on the type of DC. It frees only common and window DCs. It has no effect on class or private DCs. Syntax int ReleaseDC( __in HWND hWnd, __in HDC hDC ); Parameters hWnd [in] A handle to the window whose DC is to be released. hDC [in] A handle to the DC to be released. Return Value The return value indicates whether the DC was released. If the DC was released, the return value is 1. If the DC was not released, the return value is zero. Remarks The application must call the ReleaseDC function for each call to the GetWindowDC function and for each call to the GetDC function that retrieves a common DC. An application cannot use the ReleaseDC function to release a DC that was created by calling the CreateDC function; instead, it must use the DeleteDC function. ReleaseDC must be called from the same thread that called GetDC. Examples For an example, see Scaling an Image . Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWinuser.h (include Windows.h) LibraryUser32.lib DLLUser32.dll See Also Device Contexts Overview Device Context Functions CreateDC DeleteDC GetDC GetWindowDC Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd162920(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。