CreateMenuBar
Document ShellThe
CreateMenuBarmethod creates and initializes a menu bar object.
ODMenuBar CreateMenuBar (in ODPlatformMenuBar menuBar);
menuBar- A 32-bit value identifying a menu bar. On the Mac OS platform, this parameter is a handle (type
Handle).- return value
- A reference to the newly created menu bar object.
DISCUSSION
The document shell calls this method. Your part typically calls this window-state object'sCopyBaseMenuBarmethod instead of this method.This method initializes the reference count of the returned menu bar. When the caller has finished using that menu bar, it should call the menu bar's
Releasemethod.SEE ALSO
TheODWindowState::CopyBaseMenuBarmethod (page 855).
TheODMenuBarclass (page 394).