150 likes | 291 Views
This resource provides an in-depth overview of member variables in Object-Oriented Programming (OOP), specifically within the context of Visual C++. It covers key concepts such as naming conventions, categories, and data types including CString, Bool, int, and more. The document explains how to control the visibility and functionality of UI elements like edit boxes and buttons using these member variables. Additionally, it introduces ActiveX controls, their uses, and how to incorporate them into applications, enhancing functionality and user interaction in multimedia and database programs.
E N D
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 Variable types - Cstring, Bool, Ccalendar, int, double, float
OOP - Visual C++ Check Boxes: Visible & Enable Control the Edit Box and the appearance of text inside it.
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
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
Test of Equivalency m_VisibleCheck = TRUE; m_TestEdit = “This is a test !”’ if (m_EnabledCheck == TRUE) GetDlgItem (IDC_TEST_EDIT) …;
Member Variables • m_ • Saves data that the program manipulates, tests, or stores • What data was stored, manipulated or tested in the Day 2 exercise ?
IF-Then-Else • Conditional • Two Possible Paths • Used within Loop Structures • P. 80 • Based Comparison Results (T/F)
Changing CASE CString UpperValue; UpperValue = m_TestEdit; UpperValue.MakeUpper( ); Variable Declaration, Assignment Statement, Function/Procedural Call to MakeUpper ( );
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
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
Active X Controls • Implement: • Multimedia Programs • Database Applications • MIDI Applications • Animation Programs • Extend the range of a VC++ Program
The End • “That’s all folks.”