在mainframe 的 PreCreateWindow 中加入
cs.style &= ~WS_EX_STATICEDGE;
cs.style &= ~WS_EX_CLIENTEDGE;
cs.style &= ~WS_EX_WINDOWEDGE;
cs.style &= ~WS_THICKFRAME;
cs.style &= ~WS_DLGFRAME;
一直以为是在 childfrm里面修改 哪里知道是在view里面
在VIEW::OnInitialUpdate中加这一句ModifyStyleEx(WS_EX_CLIENTEDGE, 0, SWP_FRAMECHANGED);
cs.style &= ~WS_EX_STATICEDGE;
cs.style &= ~WS_EX_CLIENTEDGE;
cs.style &= ~WS_EX_WINDOWEDGE;
cs.style &= ~WS_THICKFRAME;