Share via


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

Reference

CGdiObject Class

Hierarchy Chart

CGdiObject::Detach

Other Resources

CGdiObject Members