Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
CGdiObject::GetSafeHandle
CGdiObject                                  Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  HANDLE GetSafeHandle() const;
 
  Remarks
 
  Returns m_hObject unless this is NULL, in which case NULL is returned.
  This is part of the general handle interface paradigm and is useful when
  NULL is a valid or special value for a handle.
 
  Return Value
 
  A HANDLE to the attached Windows GDI object, or NULL if no object is
  attached.
 
 
                                     -♦-