Microsoft SDK for Java

OLECMDID Interface Fields

The OLECMDID interface has the fields shown in the following table.

Field Value Description
OLECMDID_OPEN 1 File menu, Open command.
OLECMDID_NEW 2 File menu, New command.
OLECMDID_SAVE 3 File menu, Save command.
OLECMDID_SAVEAS 4 File menu, Save As command.
OLECMDID_SAVECOPYAS 5 File menu, Save Copy As command.
OLECMDID_PRINT 6 File menu, Print command
OLECMDID_PRINTPREVIEW 7 File menu, Print Preview command.
OLECMDID_PAGESETUP 8 File menu, Page Setup command.
OLECMDID_SPELL 9 Tools menu, Spelling command.
OLECMDID_PROPERTIES 10 File menu, Properties command.
OLECMDID_CUT 11 Edit menu, Cut command.
OLECMDID_COPY 12 Edit menu, Copy command.
OLECMDID_PASTE 13 Edit menu, Paste command.
OLECMDID_PASTESPECIAL 14 Edit menu, Paste Special command.
OLECMDID_UNDO 15 Edit menu, Undo command.
OLECMDID_REDO 16 Edit menu, Redo command
OLECMDID_SELECTALL 17 Edit menu, Select All command.
OLECMDID_CLEARSELECTION 18 Edit menu, Clear command
OLECMDID_ZOOM 19 View menu, Zoom command ( details follow).
OLECMDID_GETZOOMRANGE 20 Retrieves the zoom range applicable to View, Zoom (details follow).
OLECMDID_UPDATECOMMANDS 21 Informs the receiver, usually a frame, of state changes. The receiver can then query the status of the commands whenever convenient.
OLECMDID_REFRESH 22 Asks the receiver to refresh its display. Implemented by the document/object.
OLECMDID_STOP 23 Stops all current processing. Implemented by the document/object.
OLECMDID_HIDETOOLBARS 24 View Menu, Toolbars command. Implemented by the document/object to hide its toolbars.
OLECMDID_SETPROGRESSMAX 25 Sets the maximum value of a progress indicator if one is owned by the receiving object, usually a frame. The minimum value is always zero.
OLECMDID_SETPROGRESSPOS 26 Sets the current value of a progress indicator if one is owned by the receiving object, usually a frame.
OLECMDID_SETPROGRESSTEXT 27 Sets the text contained in a progress indicator if one is owned by the receiving object, usually a frame. If the receiver currently has no progress indicator, this text should be displayed in the status bar (if one exists) as with IOleInPlaceFrame::SetStatusText.
OLECMDID_SETTITLE 28 Sets the title bar text of the receiving object, usually a frame.
OLECMDID_SETDOWNLOADSTATE 29 Called by the object when downloading state changes. Takes a VT_BOOL parameter, which is TRUE if the object is downloading data and FALSE if it not. Primarily implemented by the frame.
OLECMDID_STOPDOWNLOAD 30 Stops the download when executed. Typically, this command is propagated to all contained objects. When queried, sets MSOCMDF_ENABLED. Implemented by the document/object.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.