Visual C++ Workshop
Some Suggested Programming Exercises
R. Eckert

1. Winapp2 Modifications--
    Modify winapp2 by adding any or all of the following features:
        menu items:
           "rectangle", "circle": drawn at cursor when mouse button pressed
           "sketch": button down==>button down starts sketching, up stops
           "display name": button down==>write your name at cursor
           "size": provide popup menu with "big", "medium", "small"
                     detemine size of rectangle or circle drawn
           "color": provide popup menu with "red", "green", "blue"
                     determine color of objects drawn 


                       
2. Move a bitmap--
    Use one or more scroll bars to position a bitmap in response to user 
    pressing a "Move" button



3. App with a dialog box that asks for and retrieves student names--
    Dialog box should contain:
        "Student Name" edit control for user to enter names
        "Name List" List box control to contain the list of names entered
        "Add" button pressed when user has entered a new name
        "Done" button to terminate execution
    Could be made into a complete student grade-keeping application



4. Add rubberband line and line width functionality to MFC Sketch app--
    New menu items:
        "Rubberband line": allows user to draw rubberband lines
        "Line width": brings up dialog box with line width edit control
                             subsequent sketches/lines will use the new line width



5. MFC Audio CD / AVI Movie / Digital Sound player--
    A dialog-based app with following controls:
        Listbox with "AVI", "CD", "WAV" choices
            "CD" selection==>audio CD playing is selected
            "WAV" ==> wave file playing is selected
            "AVI"==>AVI video movie playing is selected
        "Play" and "Stop" buttons
            "Play" pressed==>
                "WAV" & "AVI"==>Common File Dlg box, selected file played
                "CD"==>Audio CD in CD-ROM is played
            "Stop" pressed==>playing stops & device is closed
        "OK" button to terminate