win32gui.GetWindowDC


检索指定窗口的 DC (设备上下文),包括标题栏、菜单和滚动条。

窗口设备上下文允许在窗口任意位置进行绘制,因为设备上下文的来源是窗口左上角,而不是工作区。

GetWindowDC 每次检索设备上下文时,会将默认属性分配给窗口设备上下文,以前的属性会丢失。

摘      自: GetWindowDC 函数 (winuser.h)

另请参阅: win32gui.ReleaseDC

Basic Usage     Detailed Usage

Python

win32gui.GetWindowDC(hwnd)
			

C++

HDC GetWindowDC(
  [in] HWND hWnd
);
			

 

Copyright Notice: This article is an exclusive original manuscript, copyright belongs to Happy Digits Software , shall not be reproduced without permission.