如题.
多谢.

解决方案 »

  1.   

    你说的是对话框?
     要是对话框可在其属性中将Border属性去掉就能达到效果……
      

  2.   

    不是 对话框 
    我 框架窗口 :  class CMainFrame : public CFrameWnd怎么把他的外观 搞成 象对话框一样, 平的。
      

  3.   

    在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);
      

  4.   

    多谢 dc.DrawEdge(......)这个函数真的不错。那个边框原来是 非客户区 多谢