本文整理汇总了C++中DuiException函数的典型用法代码示例。如果您正苦于以下问题:C++ DuiException函数的具体用法?C++ DuiException怎么用?C++ DuiException使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了DuiException函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: IMPL_LUA_FUNC
IMPL_LUA_FUNC(LuaWindowExport, IsValid)
{
try
{
CLuaWindow* self;
self = static_cast<CLuaWindow*>(LuaStatic::CheckUserData(l, 1));
lua_op_t<bool>::push_stack(l, self->IsValid() ? true : false);
return 1;
}
catch (...)
{
DuiException(_T("LuaWindowExport::IsValid"));
return 0;
}
}
示例2: IMPL_LUA_FUNC
IMPL_LUA_FUNC(LuaCDialogBuilder, Create2)
{
try
{
CDialogBuilder* self;
self = static_cast<CDialogBuilder*>(LuaStatic::CheckUserData(l, 1));
return 1;
}
catch (...)
{
DuiException(_T("LuaCDialogBuilder::Create2"));
return 0;
}
}
示例3: IMPL_LUA_FUNC
IMPL_LUA_FUNC(LuaCNotifyPump, LoopDispatch)
{
try
{
CNotifyPump* self;
self = static_cast<CNotifyPump*>(LuaStatic::CheckUserData(l, 1));
TNotifyUI* pMsg = static_cast<TNotifyUI*>(LuaStatic::CheckUserData(l, 2));
lua_pushboolean(l, self->LoopDispatch(*pMsg) ? 1 : 0);
return 1;
}
catch(...)
{
DuiException(_T("LuaCNotifyPump::LoopDispatch"));
return 0;
}
}
示例4: LUA_METHOD_IMPL
LUA_METHOD_IMPL(CDateTimeUI,SetReadOnly)
{
try
{
CDateTimeUI* self;
self = static_cast<CDateTimeUI*>(LuaStatic::CheckUserData(l, 1));
bool bReadOnly = lua_toboolean(l,2) != 0;
self->SetReadOnly(bReadOnly);
return 0;
}
catch (...)
{
DuiException(_T("LuaCDateTimeUI::SetReadOnly"));
return 0;
}
}
示例5: IMPL_LUA_FUNC
IMPL_LUA_FUNC(LuaCTreeViewUI, SetItemMinWidth)
{
try
{
CTreeViewUI* self;
self = static_cast<CTreeViewUI*>(LuaStatic::CheckUserData(l, 1));
int nVal = lua_tointeger(l,2);
self->SetItemMinWidth(nVal);
return 0;
}
catch (...)
{
DuiException(_T("LuaCTreeViewUI::SetItemMinWidth"));
return 0;
}
}
示例6: LUA_METHOD_IMPL
LUA_METHOD_IMPL(CWebBrowserUI, Refresh2)
{
try
{
CWebBrowserUI* self;
self = static_cast<CWebBrowserUI*>(LuaStatic::CheckUserData(l, 1));
int nLevel = lua_tointeger(l,2);
self->Refresh2(nLevel);
return 0;
}
catch (...)
{
DuiException(_T("LuaCWebBrowserUI::Refresh2"));
return 0;
}
}
示例7: LUA_METHOD_IMPL
LUA_METHOD_IMPL(CLabelUI, GetFont)
{
try
{
CLabelUI* self;
self = static_cast<CLabelUI*>(LuaStatic::CheckUserData(l, 1));
int iFont = self->GetFont();
lua_pushinteger(l, (lua_Integer)iFont);
return 1;
}
catch (...)
{
DuiException(_T("LuaCLabelUI::GetFont"));
return 0;
}
}