标签:des style color os ar 问题 sp amp on
点击标题栏的X无法正常的退出程序,界面销毁但是后台仍在运行,看了下源码,点击X以后会进入此处理
void WindowImplBase::OnClick(TNotifyUI& msg) { CDuiString sCtrlName = msg.pSender->GetName(); if( sCtrlName == _T("closebtn") ) { Close(); return; }
void CWindowWnd::Close(UINT nRet) { ASSERT(::IsWindow(m_hWnd)); if( !::IsWindow(m_hWnd) ) return; PostMessage(WM_CLOSE, (WPARAM)nRet, 0L); }
LRESULT CDYControlSystemFrameWnd::OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { ::PostQuitMessage(0L); bHandled = FALSE; __super::OnDestroy(uMsg, wParam, lParam, bHandled); return 0; }
标签:des style color os ar 问题 sp amp on
原文地址:http://blog.csdn.net/x356982611/article/details/38987615