共用方式為


CToolBarCtrl::GetDropTarget

Retrieves the IDropTarget interface for a toolbar control.

HRESULT GetDropTarget(
   IDropTarget** ppDropTarget 
) const;

Parameters

  • ppDropTarget
    A pointer to an IDropTarget interface pointer. If an error occurs, a NULL pointer is placed in this address.

Return Value

Returns an HRESULT value indicating success or failure of the operation.

Remarks

This member function implements the behavior of the Win32 message TB_GETOBJECT, as described in the Windows SDK.

Requirements

Header: afxcmn.h

See Also

Concepts

CToolBarCtrl Class

CToolBarCtrl Members

Hierarchy Chart