13#if defined(__BORLANDC__)
31 cbSize =
sizeof(MENUITEMINFO);
42 cbSize =
sizeof(MENUITEMINFO);
55 cbSize =
sizeof(MENUITEMINFO);
85 WARNX(
OwlMenu, !Handle, 0,
"Cannot Create Menu for Copy");
108 Handle(::GetMenu(
hWnd)),
112 WARNX(
OwlMenu, !Handle, 0,
"Cannot Get Menu from " <<
static_cast<void*
>(
hWnd));
162 if (ShouldDelete && Handle)
179 if (
id !=
uint(-1)) {
206 id =
subMenu.GetMenuItemID(0) - 1;
207 TRACEX(
OwlWin, 1,
"TMenu::GetMenuItemID - returns faked [Id of first "\
208 "menu item - 1, id=" <<
dec <<
id);
211 TRACEX(
OwlWin, 1,
"TMenu::GetMenuItemID - unable to determine id - "\
220struct TMenuGetMenuString
225 TMenuGetMenuString(
const TMenu&
m,
uint i,
uint f) : menu(
m), item(
i), flags(f) {}
241#if !defined(BI_COMP_GNUC)
253#if !defined(BI_COMP_GNUC)
302 return ::CheckMenuRadioItem(Handle,
first,
last, check, flags) !=
FALSE;
366 for (
int i = 0;
i < itemCount;
i++)
372 if (state ==
static_cast<uint>(-1))
394 info.dwTypeData = str;
#define WARNX(group, condition, level, message)
#define PRECONDITION(condition)
#define DIAG_DECLARE_GROUP(group)
#define TRACEX(group, level, message)
#define DIAG_DEFINE_GROUP_INIT(f, g, e, l)
TXOwl is root class of the ObjectWindows exception hierarchy.
TAutoDelete
Flag for Handle ctors to control Handle deletion in dtor.
Definition of class TModule.
Object Windows Library (OWLNext Core)
tstring CopyText(int size, TGetText get_text)
Copies text from a C-string (null-terminated character array) into a string object,...
#define COUNTOF(s)
Array element count Important: Only use this with an argument of array type.