Download
object oriented programming n.
Skip this Video
Loading SlideShow in 5 Seconds..
Object Oriented Programming PowerPoint Presentation
Download Presentation
Object Oriented Programming

Object Oriented Programming

102 Vues Download Presentation
Télécharger la présentation

Object Oriented Programming

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Object Oriented Programming Dr. Ennis-Cole CECS 5100

  2. Object Oriented Programming Member Variables: 1.) Have Names 2.) Belong to Categories 3.) Are an implementation of a type of data

  3. Object Oriented Programming Member Variables: Names - m_TestEdit Categories - Value, Control Variable types - Cstring, Bool, Ccalendar, int, double, float

  4. OOP - Visual C++ Check Boxes: Visible & Enable Control the Edit Box and the appearance of text inside it.

  5. OOP - Visual C++ Exit Button’s Design - makes it “standout,” draws the user’s attention to the bottom of the screen, uses a new property - the modal frame

  6. OOP Visual C++

  7. OOP - Visual C++ Numbers - + , Category: (Value, Control) Type of Data -64.0 -50.2 -2 17 12 32.41 25.67 13.82 10 6 -8 -5 -80 11

  8. Test of Equivalency m_VisibleCheck = TRUE; m_TestEdit = “This is a test !”’ if (m_EnabledCheck == TRUE) GetDlgItem (IDC_TEST_EDIT) …;

  9. Member Variables • m_ • Saves data that the program manipulates, tests, or stores • What data was stored, manipulated or tested in the Day 2 exercise ?

  10. IF-Then-Else • Conditional • Two Possible Paths • Used within Loop Structures • P. 80 • Based Comparison Results (T/F)

  11. Changing CASE CString UpperValue; UpperValue = m_TestEdit; UpperValue.MakeUpper( ); Variable Declaration, Assignment Statement, Function/Procedural Call to MakeUpper ( );

  12. Active X Controls • Files with an .OCX extension • A Control added to the Control Tool Bar • Available from a third party vendor • Comparable to a “Plug in” added to a program • Usually in the c:\Windows\System directory

  13. Active X Controls • Procedure for Use: • Register the Control • Add the Control from the Components and Controls Submenu • Placing a Active X Control within a dialog box makes it visible to an end-user

  14. Active X Controls • Implement: • Multimedia Programs • Database Applications • MIDI Applications • Animation Programs • Extend the range of a VC++ Program

  15. The End • “That’s all folks.”