VC++ move borderless form
i'm totally new to开发者_如何学Go C++, but anyway, how to move a borderless form (this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::None;
)?
thanks
That did it in MFC. It enabled the window to move by dragging it by any point inside the window!
void MyWnd::OnLButtonDown(UINT nFlags, CPoint point)
{
PostMessage( WM_NCLBUTTONDOWN, HTCAPTION, MAKELPARAM( point.x, point.y));
}
精彩评论