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

相關詞條

熱門詞條

聯絡我們