改变窗口的Style
1. 无标题栏
2. 可改变大小
代码
HWND hwnd = this->m_hWnd;
int index = GWL_STYLE;
// read existing value
LONG styleValue = ::GetWindowLong(hwnd, index);
// change
styleValue &= ~WS_CAPTION;
// take effect
::SetWindowLong(hwnd, GWL_STYLE, styleValue);
::SetWindowPos(hwnd, NULL, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOSIZE | SWP_NOMOVE);
int index = GWL_STYLE;
// read existing value
LONG styleValue = ::GetWindowLong(hwnd, index);
// change
styleValue &= ~WS_CAPTION;
// take effect
::SetWindowLong(hwnd, GWL_STYLE, styleValue);
::SetWindowPos(hwnd, NULL, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOSIZE | SWP_NOMOVE);