CHALLENGES


  1. See if you can redesign the color scheme of the Click Race game. Try altering the foreground and background colors of the buttons and the form itself or altering the font properties to see if you can create a unique-looking Windows application.

  2. If you double-click on the Click Race game's window, you can resize it, resulting in a less-than-attractive appearance. Prevent this behavior by locking the dimensions of the window into place. (Hint: Set the FormBorderStyle property to one of the Fixed border styles in the drop-down list that appears.)

  3. When the time runs out, the timer1 control keeps going even though the game is over. The game still works because timer1 is reset when the game restarts. However, allowing timer1 to keep running is an inefficient waste of CPU resources and a bad programming practice. Reprogram the game to disable the timer when it is no longer needed. (Hint: Add timer1->Enabled = false immediately after the buttons are disabled.)

  4. Add a second text box that displays the amount of time remaining.




Microsoft Visual C++ 2005 Express Edition Programming for the Absolute Beginner 2006
Microsoft Visual C++ 2005 Express Edition Programming for the Absolute Beginner 2006
ISBN: 735615381
EAN: N/A
Year: 2005
Pages: 131

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net