改变窗口的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, 
0000, SWP_FRAMECHANGED | SWP_NOSIZE | SWP_NOMOVE);

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
  • 2021-10-11
  • 2021-12-12
  • 2022-12-23
  • 2021-12-15
猜你喜欢
  • 2021-07-10
  • 2022-12-23
  • 2022-01-12
  • 2021-10-19
  • 2021-12-27
  • 2022-02-22
  • 2022-01-23
相关资源
相似解决方案