新闻资讯
看你所看,想你所想

GetSafeHdc

GetSafeHdc

GetSafeHdc是一则函式,返回输出设备上下文的句柄。

基本介绍

  • 中文名:GetSafeHdc
  • 函式原型:HDC GetSafeHdc( ) const;
  • 函式简介:CDC::GetSafeHdc
  • 编程:返回输出设备上下文的句柄

编程

Call this member function to get m_hDC, the output device context.
Win32 编程时用HDC 来操作 绘图设备
MFC中封装了HDC 但为了和Win32 兼容,
就用这个函式得到它,以备用户操作HDC
有关HDC 请看Win32编程相关内容

函式原型

HDC GetSafeHdc( ) const;

函式简介

CDC::GetSafeHdc
This method retrieves them_hDCdata member, which contains the output device context.
Return Value:A device context handle.
Requirements:
Windows CE versions: 1.0 and later
Header file: Declared in Afxwin.h
Platform: H/PC Pro, Palm-size PC, Pocket PC

转载请注明出处海之美文 » GetSafeHdc

相关推荐

    声明:此文信息来源于网络,登载此文只为提供信息参考,并不用于任何商业目的。如有侵权,请及时联系我们:ailianmeng11@163.com