如果你正在使用C++ HWND hWnd; // = WindowHandle() ::SetWindowLong(hWnd, GWL_EXSTYLE, ::GetWindowLong(hWnd, GWL_EXSTYLE) | WS_EX_DLGMODALFRAME);