共用方式為


CWindow::GetDCEx

Retrieves a device context for the client area and allows clipping options.

HDC GetDCEx( 
   HRGN hRgnClip, 
   DWORD flags  
) throw();

Remarks

See GetDCEx in the Windows SDK.

Requirements

Header: atlwin.h

See Also

Reference

CWindow Class

CWindow::GetDC

CWindow::GetWindowDC

CWindow::ReleaseDC