16,473
社区成员
发帖
与我相关
我的任务
分享
BOOL CMy2dlg::OnNcActivate(BOOL bActive)
{
// TODO: Add your message handler code here and/or call default
if ( bActive == FALSE )
{
return FALSE;
}
this->GetParent()->SendMessage(WM_NCACTIVATE,TRUE,0);
return CDialog::OnNcActivate(bActive);
}
void B::OnButton1()
{
::SetForegroundWindow(GetParent()->m_hWnd);
this->GetParent()->SendMessage(WM_NCACTIVATE,TRUE,0);
DestroyWindow();
}