1 / 15

Object Oriented Programming

Object Oriented Programming. Dr. Ennis-Cole CECS 5100. Object Oriented Programming. Member Variables : 1.) Have Names 2.) Belong to Categories 3.) Are an implementation of a type of data. Object Oriented Programming. Member Variables : Names - m_TestEdit Categories - Value, Control

sarila
Download Presentation

Object Oriented Programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

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.”

More Related