我用http://community.csdn.net/Expert/topic/3423/3423450.xml?temp=9.338015E-02
在OnInitialUpadata()里
{
   ModifyStyle(WS_EX_CLIENTEDGE,WS_EX_STATICEDGE);
   ModifyStyle(-1,WS_CHILD|WS_VISIBLE);   CYourView::OnInitialUpdate();
   GetParentFrame()->RecalcLayout();
   ResizeParentToFit();}
然后,在onNcpaint里写上如下几句话
CWindowDC dc(this);
CRect rectClient;
GetClientRect(rectClient);
CRect rectWindow;
GetWindowRect(rectWindow);
ScreenToClient(rectWindow);
rectClient.OffsetRect(-rectWindow.left, -rectWindow.top);
dc.ExcludeClipRect(rectClient);
rectWindow.OffsetRect(-rectWindow.left, -rectWindow.top); // Paint to a memory device context to help
// eliminate screen flicker...

// and draw a sunken border for the client area.
SendMessage(WM_ERASEBKGND, (WPARAM)dc.m_hDC);
dc.DrawEdge(rectWindow, BDR_RAISEDINNER, BF_RECT);===========================================的方法,对于 1 个 CFormView 是没有问题,但是用 CSplitterWnd 后怎么也不行,需要重写 CSplitterWnd?