CS-360, Fall, 2008 Assignment 2 Section 1 Due Date: 9-25-08 Section 2 Due Date: 9-24-08 In this assignment you are to use Microsoft Visual Studio 2005 or 2008 to develop a Visual C++, MFC, Document/View, Single Document Interface Windows application that performs most of the same functions as your first Win32 API assignment, in addition to an extra "Rubberband Line" functions described below. As in the first assignment there is to be a menu with the items: "Drawing Function", "Color", "Pattern", "Size", "Orientation", "Clear", and "Quit". All but the last two should be popup menus. When the user clicks "Drawing Function", a popup menu with the items: "Ellipse", "Sketch", "Polygon", "Name", and "Rubberband Line", should appear. All but the last of these should work just as they did in your first assgnment. The sketching should be done in exactly the same way illustrated by the "Sketch" example MFC program discussed in class. If the user selects "Rubberband Line", a subsequent press of the left mouse button should anchor one end of the line to be drawn. While the left mouse button remains down, the user should be able to move the mouse so that a line is continuously drawn from the anchor point that stretches and contracts in such a way that the other end of the line follows the motion of the mouse. This can be achieved if each time the mouse moves (with the left button still down), the old line is erased (by perhaps drawing it again with a background-colored pen) and then drawing a new line from the anchor point to the point at which the mouse cursor was when the mouse moved. The line should be made "permanent" when the left mouse button goes up. As for sketching in Assignment 1, the thickness of the rubberband line should be determined by the current "Size" menu item selection. The "Color" and "Pattern", "Size", "Orientation", "Clear" and "Quit" menu items should work the same way as in Assignment 1. As for Assignment 1, your window should have an appropriate title and icon. Use the "Sketch" example program discussed in class as a model for developing this MFC Document/View application. YOU ARE TO TURN IN A CD-ROM that contains a copy of the entire project's directory (with all the large, unnecessary temporary files deleted). Finally, submit with the CD a printed listing of the file containing your view class implementation (e.g., SketchView.cpp -- the name will not necessarily be the same as given here). The CD and program listing should be put in an envelope with your name, CS-360, the assignment number (2), and your section clearly writen on the outside, as in Assignment 1.