运行程序可以用鼠标进行移动

void CInfoStationDlg::OnLButtonDown(UINT nFlags, CPoint point)
{
CRect rect;
GetDlgItem( IDC_STATIC_FIXSDAY)->GetClientRect( &rect );
if (rect.PtInRect(point ))
{
SendMessage(WM_SYSCOMMAND,0xF012,0);//0xF012 = SC_MOVE | HTCAPTION
}
CDialog::OnLButtonDown(nFlags, point);
}

posted @ 2013-09-03 09:58  友琼  阅读(171)  评论(0编辑  收藏  举报