Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 C++ 完全陌生,但无论如何,如何移动无边界表单(this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::None;)?
this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::None;
谢谢
在 MFC 中做到了。它使窗口可以通过在窗口内的任意点拖动来移动!
void MyWnd::OnLButtonDown(UINT nFlags, CPoint point) { PostMessage( WM_NCLBUTTONDOWN, HTCAPTION, MAKELPARAM( point.x, point.y)); }