本文共 226 字,大约阅读时间需要 1 分钟。
HDC GetSafeHdc( ) const;
Call this member function to get m_hDC, the output device context. This member function also works with null pointers.
GetSafeHdc是检查CDC对象指针是否为空,如果不为空则返回m_hDC成员,如果为空就直接返回NULL,以免产生异常。GetSafeHandle也是同样做法。
转载地址:http://whqfn.baihongyu.com/