OleClientSite.queryStatus

Returns the status of the specified command. The status is any bitwise OR'd combination of SWTOLE.OLECMDF_SUPPORTED, SWTOLE.OLECMDF_ENABLED, SWTOLE.OLECMDF_LATCHED, SWTOLE.OLECMDF_NINCHED. You can query the status of a command before invoking it with OleClientSite.exec. The OLE Document or ActiveX Control must support the IOleCommandTarget to make use of this method.

@param cmd the ID of a command; these are the OLE.OLECMDID_ values - a small set of common commands

@return the status of the specified command or 0 if unable to query the OLE Object; these are the OLE.OLECMDF_ values

class OleClientSite
int
queryStatus
(
int cmd
)

Meta