The document describes adding functionality to a CFigureView class. It involves: 1) Declaring a member variable m_color of type COLORREF to store the color. 2) Initializing m_color to blue (RGB(0,0,255)) in the constructor. 3) Overriding OnLButtonDown to draw a rectangle using m_color when the left mouse button is clicked. 4) Overriding OnRButtonDown to open a color dialog when the right mouse button is clicked and update m_color with the selected color.