Udostępnij za pośrednictwem


CMFCToolBar::LoadToolBarEx

Loads the toolbar from application resources by using the CMFCToolBarInfo helper class to enable the application to use large images.

virtual BOOL LoadToolBarEx(
   UINT uiToolbarResID,
   CMFCToolBarInfo& params,
   BOOL bLocked=FALSE 
);

Parameters

  • [in] uiToolbarResID
    The resource ID of the toolbar.

  • [in] params
    A reference to a CMFCToolBarInfo object that contains the resource IDs for the toolbar images.

  • [in] bLocked
    A Boolean value that specifies whether the toolbar is locked or not. If this parameter is TRUE, the toolbar is locked. Otherwise, the toolbar is not locked.

Return Value

Nonzero if the method succeeds; otherwise 0.

Remarks

Call this method to load toolbar images from the application resources.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart

CMFCToolBarInfo Class