无标题栏的窗体,点击任务栏图标最小化

  const int WS_EX_TOOLWINDOW = 0x80;
  const long WS_POPUP = 0x80000000L;
  const int WS_VISIBLE = 0x10000000;
  const int WS_SYSMENU = 0x80000;
  const int WS_MAXIMIZEBOX = 0x10000;
 const int WS_EX_STATICEDGE=0x00020000L;

 

C代码;

long style=GetWindowLong(hWnd,GWL_STYLE);

SetWindowLong(hWnd,GWL_STYLE,style|0x20000);

 



文章来自: 本站原创
Tags:
评论: 0 | 查看次数: 8603