开发者

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));
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜