GetDC(参数)

GetDC(参数)
2025-02-26 06:02:27
推荐回答(5个)
回答1:

::GetDC(HWND)
如果是Win32的API,那么参数是窗口句柄。

如果是MFC,那么无参数。其实内部实现就是你用此函数的CWnd的句柄,包装了一下而已。

回答2:

获得客户区的设备环境
CDC* CWnd::GetDC( );
返回值:
如果调用成功,则返回CWnd客户区的设备环境

由于CWnd已经表明了是哪个窗口的设备环境,所以该函数是无参的。

回答3:

HDC GetDC(
HWND hWnd // handle to a window
);

The GetDC function retrieves a handle to a display device context for the client area of a specified window or for the entire screen. You can use the returned handle in subsequent GDI functions to draw in the device context.

MSDN一查就查到了.

回答4:

http://baike.baidu.com/view/1080533.htm

回答5:

看msdn