解决方案 »

  1.   

    Draw3DRect:
     Call this member function to draw a three-dimensional rectangle. The rectangle will be drawn with the top and left sides in the color specified by clrTopLeft and the bottom and right sides in the color specified by clrBottomRightExample:
     重载对话框的OnPaint函数,加入下面的代码即可:
    void CDialog3DDlg::OnPaint() 
    {
    if (IsIconic())
    {
    …………
    }
    else
    {
    CPaintDC dc(this);
    CRect rect;
    GetClientRect(&rect);
    dc.Draw3dRect(rect.left,rect.top,rect.right - rect.left,rect.bottom - rect.top,RGB(119,212,33),RGB(124,45,66));
    …………
    }
    }