다음을 통해 공유


CGdiObject::Attach

Attaches a Windows GDI object to a CGdiObject object.

BOOL Attach(
   HGDIOBJ hObject 
);

Parameters

  • hObject
    A HANDLE to a Windows GDI object (for example, HPEN or HBRUSH).

Return Value

Nonzero if attachment is successful; otherwise 0.

Requirements

Header: afxwin.h

See Also

Concepts

CGdiObject Class

CGdiObject Members

Hierarchy Chart

CGdiObject::Detach