本文整理汇总了C++中CWindowWnd::GetHWND方法的典型用法代码示例。如果您正苦于以下问题:C++ CWindowWnd::GetHWND方法的具体用法?C++ CWindowWnd::GetHWND怎么用?C++ CWindowWnd::GetHWND使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CWindowWnd
的用法示例。
在下文中一共展示了CWindowWnd::GetHWND方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Notify
void CLoginPreWnd::Notify(TNotifyUI& msg)
{
if( msg.sType == _T("windowinit") )
{
OnPrepare(msg);
}
else if( msg.sType == _T("click") )
{
if( msg.pSender->GetName() == L"closebtn" )
{
Close();
return;
}
else if( msg.pSender->GetName() == L"EverAccountLoginBtn" )
{
Close();
// 强制弹出更新窗口进行升级
mainframe::MainFrame_GetWndService stGetWndService;
login::g_LoginModule->GetModuleManager()->CallService(mainframe::SERVICE_VALUE_MAINFRAME_GET_MAINWND,
(param)&stGetWndService);
CWindowWnd* pMainFrameWnd = reinterpret_cast<CWindowWnd*>(stGetWndService.pBaseWnd);
ASSERT(pMainFrameWnd != NULL);
CLoginFrameWnd* pLoginFrame = new CLoginFrameWnd();
pLoginFrame->Create(pMainFrameWnd->GetHWND(), _T(""),
UI_WNDSTYLE_DIALOG, UI_WNDSTYLE_EX_DIALOG, 0, 0, 0, 0, NULL);
pLoginFrame->CenterWindow();
/*
pMainFrameWnd->ShowModal(*pLoginFrame);
*/
return;
}
else if( msg.pSender->GetName() == L"EverAacountRegisterBtn" )
{
}
else if( msg.pSender->GetName() == L"QQLogin" )
{
Close();
// 强制弹出更新窗口进行升级
mainframe::MainFrame_GetWndService stGetWndService;
login::g_LoginModule->GetModuleManager()->CallService(mainframe::SERVICE_VALUE_MAINFRAME_GET_MAINWND,
(param)&stGetWndService);
CWindowWnd* pMainFrameWnd = reinterpret_cast<CWindowWnd*>(stGetWndService.pBaseWnd);
ASSERT(pMainFrameWnd != NULL);
COAuthLoginWnd* pLoginFrame = new COAuthLoginWnd();
pLoginFrame->Create(pMainFrameWnd->GetHWND(), _T(""),
UI_WNDSTYLE_DIALOG, UI_WNDSTYLE_EX_DIALOG, 0, 0, 0, 0, NULL);
pLoginFrame->CenterWindow();
}
}
}
示例2:
IMPL_LUA_FUNC(LuaCWindowWnd, Delete)
{
CWindowWnd* self;
self = static_cast<CWindowWnd*>(LuaStatic::CheckUserData(l, 1));
LuaStatic::RemoveObjectInLua(l);
if (::IsWindow(self->GetHWND()) )
SafeDelete(self);
return 0;
}
示例3: IMPL_LUA_FUNC
IMPL_LUA_FUNC(LuaCWindowWnd, GetHWND)
{
try
{
CWindowWnd* self;
self = static_cast<CWindowWnd*>(LuaStatic::CheckUserData(l, 1));
LuaStatic::AddObject2Lua(l, self->GetHWND(), "HWND");
return 1;
}
catch(...)
{
DuiException(_T("LuaCWindowWnd::GetHWND"));
return 0;
}
}