Click Here!
home account info subscribe login search My ITKnowledge FAQ/help site map contact us


 
Brief Full
 Advanced
      Search
 Search Tips
To access the contents, click the chapter and section titles.

Fast Track Visual C++ 6.0 Programming
(Publisher: John Wiley & Sons, Inc.)
Author(s): Steve Holzner
ISBN: 0471312908
Publication Date: 09/01/98

Bookmark It

Search this book:
 
Introduction

Chapter 1—Up to Speed in Visual C++
Why Visual C++?
C++ and Windows
Our First Example: HelloDlg
Creating HelloDlg
Creating the KeysSDI Project
Storing Keys in KeysSDI
Reading Keys in KeysSDI
Displaying Keys in KeysSDI
Dissecting a Visual C++ Program
The Application Object
The Main Window Object
The Document Object
Storing Data in the Document
Serializing Data
The View Object
What’s Ahead

Chapter 2—Multiple Documents, Multiple Views
Creating an MDI Program
How MDI Programs Work
Handling Data in the MDI Program
Reading Keys in MDI
Displaying Text in MDI
Coordinating MDI Views
Using View Hints
Using OnUpdate() in MDI Programs
Setting the Document’s Modified Flag
Scrolling MDI Views
Implementing Scrolling
Setting the Document’s Size
Working with Multiple Menus and View Types
Working with MDI Menus
Accessing All of a Document’s Views
Supporting Multiple View Types
What’s Ahead

Chapter 3—Edit Views, HTML Views, Tree Views, Splitter Windows, and More
Rich Text Views
The New Document Template
Working with RTF Documents
Form Views
Designing the Form
Programming the MDI Calculator
HTML Views
Designing the URL Dialog Box
Adding the Dialog Box to Code
Tree Views
Populating a Tree View
Adding Bitmaps to Tree Views
Determining a Double-Clicked Item
Splitter Windows
Creating a Splitter Window Class
Adding Splitter Windows to a Program
What’s Ahead

Chapter 4—Full Power Menus, Toolbars, and Status Bars
Checkable Menu Items
Menu Shortcuts
Using Submenus
Disabling Menu Items
Using Menu Separators
Using Menu Accelerators
Bitmapped Menu Items
Modifying Menu Items at Runtime
Popup Menus
Displaying a Popup Menu
Connecting Popup Menu Items to Code
Using Dockable Toolbars
Creating a New Toolbar Class
Interacting with the Toolbar’s Combo Box
Inserting the Combo Box into the Toolbar
Adding Tools to the Toolbar
Using Rebars
Using Status Bars
Setting a Status Bar’s Text
Adding Tooltips and Status Bar Prompts
Activating Status Bar Indicators
Using Accelerator Keys with Indicators
What’s Ahead

Chapter 5—Real-World Programming: The Editor Application
Creating the Editor Program
Reading Keys in Editor
Deleting Characters
Designing the Editor Program’s Data Storage
Working with Files: Serialization
Serializing Our Data Object
Setting the Editor Data File’s Default Extension
Registering Editor’s Files with Windows
Adding a Caret to a View
Updating the Caret’s Position
Adding Mouse Support
Changing the View’s Default Cursor
Gaining and Losing the Focus
Using the Clipboard
Selecting Text
Copying Text
Cutting Text
Pasting Text
Printing from the Editor Program
Printing a Header on Each Page
What’s Ahead

Chapter 6—Advanced Screen and Metafile Graphics
Screen Capture
Capturing the Mouse
Drawing Anywhere on the Screen
Stretching Graphics Figures
Binary Raster Operations
Capturing Bits from the Screen
Placing a Bitmap in the Clipboard
Displaying a Bitmap in a View
Metafiles
Designing the CRedraw Class
Writing the CRedraw Class
Writing the PlayMetaFile() Function
Creating the Circles Program
What’s Ahead

Chapter 7—32-Bit Memory Handling
Overview of Memory
Powerful Memory Functions
Using Virtual Memory
Allocating Memory
Committing Memory
Deallocating Memory
Scanning All Memory
Memory-Mapped Files
Getting the Data to Transfer
Writing a Memory-Mapped File
Creating Memory File Views
Reading a Memory-Mapped File
What’s Ahead

Chapter 8—Connecting to the Internet
Putting the HTTP Protocol to Work
Creating the HTTP Program
Starting an Internet Session
Opening the URL
Putting the FTP Protocol to Work
Creating the FTP Program
Creating an FTP Connection
Downloading a File
Reading the File in from Disk with CFile
Creating a Web Browser
Installing the Web Browser Control
What’s Ahead

Chapter 9—Multitasking Programming
Putting Threads to Work
Creating the Threads Program
Starting a New Thread
Writing the New Thread’s Thread Procedure
Returning Data from the Thread
Notifying the Program on Thread Completion
Setting Up the New Windows Message
Reporting the Thread’s Results
Coordinating Multiple Threads
Using Events to Coordinate Threads
Creating the DoubleThreads Program
Starting the Threads
Setting and Resetting Events
Writing the Thread Procedures
Writing the MinThread Procedure
Handling the Windows Messages
What’s Ahead

Chapter 10—The Power of Dynamic Link Libraries
The Doubler DLL
Exporting a Function from a DLL
The Doubler Program
Linking to the New DLL
Shared Memory in DLLs: The Counter DLL
Creating CounterDLL.dll
Setting Up Shared Memory in a DLL
Creating the Counter Program
What’s Ahead

Chapter 11—Putting Windows Hooks to Work
The Journal Program
Setting the Record Hook
Setting the Playback Hook
Launching a Windows Program
Recording Events
Storing KeyDown and KeyUp Messages
Playing Events Back
Playing Back an Event
Skipping to the Next Event
Keyboard Hooks
Creating LaunchDLL.dll
Installing the Hook
The Hook Procedure
Creating the Launch Program
What’s Ahead

Chapter 12—COM and OLE
Creating a Container
The Container Item
The Container Program’s View
Handling the Mouse
Handling Double Clicks
Creating a Server
The Server Document
The Server Item
The Server View
Editing the Server Item in Place
What’s Ahead

Chapter 13—Creating ActiveX Controls
The Writer ActiveX Control
Using the ActiveX ControlWizard
Accepting Keystrokes in an ActiveX Control
Displaying Data in an ActiveX Control
Testing ActiveX Controls
Creating WriterApp
Subclassing Controls: The Writer2 ActiveX Control
ActiveX Properties
ActiveX Methods
ActiveX Events
Creating Writer2App
What’s Ahead

Chapter 14—The Windows Registry and Version Tracking
Using the Registry: The Remember Application
Storing Data in the Registry
Reading Data from the Registry
Using the Version Resources
Designing the About Box
Getting Version Information
Getting Version Resource Values
Getting the Major and Minor Version Numbers
Getting the Company Name
Getting the Target Operating System Type
Appendix
Index

Products |  Contact Us |  About Us |  Privacy  |  Ad Info  |  Home

Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc.
All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement.