If you don't want the border of a dialog but also need the dragging feature, send WM_NCLBUTTONDOWN Message @ OnLButtonDown();
void CDlgExample::OnLButtonDown(UINT nFlags, CPoint point)
{
SendMessage(WM_NCLBUTTONDOWN,HTCAPTION,0);
CDialog::OnLButtonDown(nFlags, point);
}
沒有留言:
張貼留言