void CDialogSC::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CDialog::OnLButtonDown(nFlags, point);
PostMessage(WM_NCLBUTTONDOWN, HTCAPTION, MAKELPARAM(point.x,point.y));
}
SetWindowRgn(rgn, TRUE);
HRGN hRgn = CreateRectRgn(0, 0, 0, 0);
if (m_bSizeToContent)
{
GetWindowRgn(hRgn);
::SelectClipRgn(dc.GetSafeHdc(), hRgn);
}
if (m_bSizeToContent)
{
::SelectClipRgn(dc.GetSafeHdc(), NULL);
}
::DeleteObject(hRgn);