94cool

win32 c++ 窗体在任务栏中隐藏

DWORD dwExStyle = GetWindowLong(hWnd, GWL_STYLE);
   dwExStyle &= ~(WS_VISIBLE);
   dwExStyle |= WS_EX_TOOLWINDOW;   
   dwExStyle &= ~(WS_EX_APPWINDOW);
   SetWindowLong(hWnd, GWL_STYLE, dwExStyle);
   ShowWindow(hWnd, SW_SHOW);
   ShowWindow(hWnd, SW_HIDE);
   UpdateWindow(hWnd);

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2021-11-30
猜你喜欢
  • 2021-12-28
  • 2021-12-23
  • 2022-01-02
  • 2021-11-30
  • 2021-11-30
  • 2021-07-24
相关资源
相似解决方案