9#if !defined(OWL_MENU_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
39# define MIIM_ALL (MIIM_CHECKMARKS|MIIM_DATA|MIIM_ID|MIIM_STATE|MIIM_SUBMENU|MIIM_TYPE)
90 virtual HMENU GetHandle()
const;
93 operator HMENU()
const;
102 bool CheckMenuItem(
uint item,
uint check);
103 bool DeleteMenu(
uint item,
uint flags);
105 uint GetMenuItemCount()
const;
108 int GetMenuString(
uint item,
LPTSTR str,
int count,
uint flags)
const;
117 bool RemoveMenu(
uint item,
uint flags);
118 bool SetMenuItemBitmaps(
uint item,
uint flags,
137 static bool GetMenuCheckMarkDimensions(
TSize& size);
138 static TSize GetMenuCheckMarkDimensions();
230 HMENU GetHandle()
const;
232 void SetModule(
TModule* module);
234 int GetGroupCount(
int group)
const;
243 bool ExtractGroups();
255 int GroupCount[NumGroups];
305 return GroupCount[
group];
321 return reinterpret_cast<TMenuItem>(GetHandle());
367 return ::CheckMenuItem(Handle, item, check);
378 return ::DeleteMenu(Handle, item, flags);
390 return ::EnableMenuItem(Handle, item,
enable);
398 return ::GetMenuItemCount(Handle);
433 return ::GetMenuState(Handle, item, flags);
441 return ::GetMenuString(Handle, item, str, count, flags);
449 return ::GetSubMenu(Handle,
posItem);
503 return ::RemoveMenu(Handle, item, flags);
516 return ::SetMenuItemBitmaps(Handle, item, flags,
#define PRECONDITION(condition)
TBitmap is the GDI bitmap class derived from TGdiObject.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
The tagSIZE struct is defined as.
TXOwl is root class of the ObjectWindows exception hierarchy.
ipstream, a specialized input stream derivative of pstream, is the base class for reading (extracting...
Base class for writing streamable objects.
Definition of abstract GDI object class and derived classes.
TAutoDelete
Flag for Handle ctors to control Handle deletion in dtor.
Object Windows Library (OWLNext Core)
TModule & GetGlobalModule()
Classes for window system structure and type encapsulation.