CWnd::ModifyStyle
1.作用: 调用这个函数修改窗口的风格 2.函数原型: BOOL ModifyStyle ( DWORD dwRemove, DWORD dwAdd, UINT nFlags=0 ); 3.参数含义: dwRemove 指定修改时要删除的窗风格。 dwAdd 指定修改时将要增加的窗口风格。 nFlags 该参数将被传给SetWindowPos,否则为0,如果SetWindowPos不被调用的话,一般该参数默认值ModifyStyle(WS_CAPTION,0,0); //去除标题栏
ModifyStyle(0,WS_THICKFRAME,0); //添加 WS_THICKFRAME风格ModifyStyle(0,WS_EX_TOOLWINDOW,0); //设置工具栏窗口风格
ModifyStyleEx(0,WS_EX_ACCEPTFILES,0); //设置