CDC* pDC = GetDC(); CRect rect(50, 50, 150, 150); pDC->Draw3dRect(rect, RGB(255, 0, 0), RGB(0, 255, 0)); ReleaseDC(pDC);In this example, we first obtain a device context object using the GetDC function. We then create a CRect object that specifies the coordinates of the rectangle we want to draw. Finally, we call the CDC Draw3dRect function to draw the rectangle on the device context, using red as the border color and green as the fill color. The package library for CDC Draw3dRect is the Microsoft Foundation Class Library (MFC). This library is part of the Microsoft Visual Studio development environment and provides a rich set of GUI classes for building Windows desktop applications.