Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Chapter 17: Track-Based Controls Visual C++ and MFC Fundamentals


The ticks can visually guide the user for the available positions of the thumb mark. A
slider can be used to let the user specify a value that conforms to a range. When equipped
with ticks, a slider can be used to control exact values that the user can select in a range,
preventing the user from setting just any desired value.

Practical Learning: Introducing Slides



  1. Start a new Dialog-based application named CarInventory1 with no About Box and
    set the Dialog Title to Car Inventory

  2. Redesign the IDR_MAINFRAME icons as follows:

  3. Delete the TODO line and the OK button

  4. Change the caption of the Cancel button to Close

  5. Move the Close button to the bottom-right section of the dialog box

  6. On the main menu, click Insert -> Resource or Project -> Add Resource...

  7. On the Add Resource dialog box, click Import...

  8. From the resources that accompany this book, locate the Cars folder, click Civic and
    click Open

  9. Change the ID of the new bitmap to IDB_CIVIC

  10. In the same way, import the Elantra, Escape, Escort, Focus, GdMarquis, Mystique,
    Navigator, Sentra, and Sephia

Free download pdf