15,978
社区成员
发帖
与我相关
我的任务
分享void CQuickBarDlg::OnMouseMove(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CRect Mrect;
GetWindowRect(&Mrect);
CFunDLG dlg;
//鼠标进入bar
if (!m_MOverControl||GetCapture()!=this)
{
m_MOverControl=true;
BOOL ret=dlg.Create(IDD_FUNDLG,this);
if (!ret)
{
AfxMessageBox(L"Error creating Dialog");
}
dlg.ShowWindow(SW_SHOW|);
dlg.ShowWindowInt(900,52);
SetCapture();
}
else
{
//鼠标离开
if (!Mrect.PtInRect(point))
{
m_MOverControl=false;
ReleaseCapture();
}
}
CDialog::OnMouseMove(nFlags, point);
}