다음을 통해 공유


COleIPFrameWndEx::InitUserToobars

Specifies a range of control IDs that the framework assigns to the user-defined toolbars.

void InitUserToolbars(
   LPCTSTR lpszRegEntry, 
   UINT uiUserToolbarFirst, 
   UINT uiUserToolbarLast
)

Parameters

  • [in] lpszRegEntry
    The registry entry where the library stores user toolbar settings.

  • [in] uiUserToolbarFirst
    Control ID assigned to the first user-defined toolbar.

  • [in] uiUserToolbarLast
    Control ID assigned to the last user-defined toolbar.

Remarks

Use this function to initialize a range of control IDs for assignment to toolbars that users define dynamically. The parameters uiUserToolbarFirst and uiUserToolbarLast define a range of allowed toolbar control IDs. To disable the creation of user-defined toolbars, set uiUserToolbarFirst or uiUserToolbarLast to -1.

Requirements

Header: afxoleipframewndex.h

See Also

Reference

COleIPFrameWndEx Class

Hierarchy Chart