home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
opendc12.zip
/
od124os2.exe
/
od12otk1.exe
/
include
/
MenuAdO.idl
< prev
next >
Wrap
Text File
|
1997-04-02
|
6KB
|
199 lines
/* @(#)Z 1.2 os2/src/ui/idl/MenuAdO.idl, odui, od96os2, odos29712d 97/03/21 17:47:47 (96/09/29 16:02:47) */
//#====START_GENERATED_PROLOG======================================
//#
//#
//# COMPONENT_NAME: odui
//#
//# CLASSES: none
//#
//# ORIGINS: 82,27
//#
//#
//# (C) COPYRIGHT International Business Machines Corp. 1995,1996
//# All Rights Reserved
//# Licensed Materials - Property of IBM
//# US Government Users Restricted Rights - Use, duplication or
//# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
//#
//# IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
//# ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
//# PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
//# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
//# USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
//# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
//# OR PERFORMANCE OF THIS SOFTWARE.
//#
//#====END_GENERATED_PROLOG========================================
#ifndef _OS2MENUADAPTER_
#define _OS2MENUADAPTER_
#include "Part.idl"
//=============================================================================
// Classes defined in this interface
//=============================================================================
interface ODOS2MenuAdapter;
struct ODOS2MenuItemAdapter {
ODMenuItemID id;
ODOS2MenuAdapter* parentAdapter;
ODOS2MenuAdapter* subMenuAdapter;
ODBoolean enabled;
ODBoolean hidden;
ODBoolean checked;
ODBoolean separator;
string text;
};
//=============================================================================
// Classes used by this interface
//=============================================================================
//=============================================================================
// Class ODOS2MenuAdapter
//=============================================================================
interface ODOS2MenuAdapter : ODObject
{
void Init (in ODMenuID id,
in HWND parentHWND);
void AddItemsFromPlatMenu (in ODPlatformMenu platMenu);
ODMenuID MenuID ();
ODBoolean IsMenuEnabled ();
void DisableMenu ();
void EnableMenu ();
ODUShort GetMenuText (out string menuString);
ODBoolean SetMenuText (in string menuString);
ODUShort GetMenuItemText (in ODMenuItemID menuItemID,
out string menuItemString);
ODBoolean SetMenuItemText (in ODMenuItemID menuItemID,
in string menuItemString);
ODBoolean SetHideMenuItem (in ODMenuItemID menuItemID);
ODBoolean SetShowMenuItem (in ODMenuItemID menuItemID);
ODBoolean CheckMenuItem (in ODMenuItemID menuItemID,
in ODBoolean check);
ODBoolean EnableMenuItem (in ODMenuItemID menuItemID,
in ODBoolean enable);
ODBoolean AddMenuItemBefore (in ODMenuItemID itemID,
in ODPlatformMenuItem item,
in ODMenuItemID beforeID);
ODBoolean AddMenuItemLast (in ODMenuItemID itemID,
in ODPlatformMenuItem item);
ODBoolean AddSubMenuBefore (in ODMenuID subMenuID,
in ODPlatformMenu subMenu,
in ODMenuItemID beforeID);
ODBoolean AddSubMenuLast (in ODMenuID subMenuID,
in ODPlatformMenu subMenu);
ODPlatformMenu GetSubMenu (in ODMenuID subMenuID);
ODBoolean ItemExists (in ODMenuItemID menuItemID);
ODBoolean IsItemEnabled (in ODMenuItemID menuItemID);
ODBoolean IsItemChecked (in ODMenuItemID menuItemID);
ODBoolean IsItemHidden (in ODMenuItemID menuItemID);
ODBoolean RemoveMenuItem (in ODMenuItemID menuItemID);
ODBoolean GetPlatMenuItem (in ODOS2MenuItemAdapter* itemAd,
out ODPlatformMenuItem platMenuItem);
ODBoolean GetPlatMenu (out ODPlatformMenu platMenu);
ODBoolean GetSubMenuAdapter(in ODMenuID subMenuID,
out ODOS2MenuAdapter subMenuAd);
void GetParentAdapter (out ODOS2MenuAdapter parentAd);
void SetParentAdapter (in ODOS2MenuAdapter parentAd);
#ifdef __SOMIDL__
implementation
{
majorversion = 1; minorversion = 0;
functionprefix = ODOS2MenuAdapter;
override: somInit, somUninit;
passthru C_xh_before =
"typedef struct ODOS2MenuItemAdapter {"
" ODMenuItemID id;"
" ODOS2MenuAdapter* parentAdapter;"
" ODOS2MenuAdapter* subMenuAdapter;"
""
" ODBoolean enabled;"
" ODBoolean hidden;"
" ODBoolean checked;"
" ODBoolean separator;"
" string text;"
"};"
""
"";
releaseorder:
Init,
AddItemsFromPlatMenu,
MenuID,
IsMenuEnabled,
DisableMenu,
EnableMenu,
GetMenuText,
SetMenuText,
GetMenuItemText,
SetMenuItemText,
SetHideMenuItem,
SetShowMenuItem,
CheckMenuItem,
EnableMenuItem,
AddMenuItemBefore,
AddMenuItemLast,
AddSubMenuBefore,
AddSubMenuLast,
GetSubMenu,
ItemExists,
IsItemEnabled,
IsItemChecked,
IsItemHidden,
RemoveMenuItem,
GetPlatMenuItem,
GetPlatMenu,
GetSubMenuAdapter,
GetParentAdapter,
SetParentAdapter,
reserved1,
reserved2,
reserved3,
reserved4;
};
#endif // __SOMIDL__
}; // end class ODOS2MenuAdapter
#endif // _OS2MENUADAPTER_