Introduction To Windows And Graphics Programming With Visual C++ (With Companion Media Pack) (Second Edition)
The Companion Media Pack is available in the .Introduction to Windows® and Graphics Programming with Visual C++® (2nd Edition) provides an accessible approach to the study of Windows programming. It is intended to be an introduction to Visual C++ for technical people including practicing engineers, engineering students, and others interested in Windows programming and its convenient graphics capabilities. While the book is aimed at a technical audience, its mathematical content is modest and should be readable by most people with an interest in C++ programming. Readers are introduced to Windows programming in a natural way; making use of the object-oriented environment, the Microsoft Foundation Classes (MFC), and the document/view organization. Visual C++ is part of Microsoft's Visual Studio and provides full support of program development at all stages — from design to debugging.This second edition brings the original book up to date reflecting the evolution of Visual C++ and the Windows environment since the first edition. All example projects, figures and text in the book have been revised and coverage of touch screen developments has been added. Two new chapters on touch screen programming are based on programming strategies developed throughout the book. New examples demonstrate touch screen operations and consider programming for a tablet environment. More than seventy example projects are provided in the book's Companion Media Pack. The structure and coding for each example project are described thoroughly in a step-by-step fashion. Exercises at the end of each chapter provide opportunities to revisit and extend the tutorial examples. The media pack files include complete program code for all projects as well as files with classes and functions for handling geometric objects and graphs. The graphics examples require only standard Microsoft resources and may be easily adapted for a wide variety of application programs.The Companion Media Pack can be readily updated as Visual C++ continues to evolve. For example, the first update of the media pack was made after the release of a new version of Visual C++. It provides a full set of example projects developed with the new version as an addition to the book's original examples. Continuing updates of the media pack are planned as appropriate.
1133122242
Introduction To Windows And Graphics Programming With Visual C++ (With Companion Media Pack) (Second Edition)
The Companion Media Pack is available in the .Introduction to Windows® and Graphics Programming with Visual C++® (2nd Edition) provides an accessible approach to the study of Windows programming. It is intended to be an introduction to Visual C++ for technical people including practicing engineers, engineering students, and others interested in Windows programming and its convenient graphics capabilities. While the book is aimed at a technical audience, its mathematical content is modest and should be readable by most people with an interest in C++ programming. Readers are introduced to Windows programming in a natural way; making use of the object-oriented environment, the Microsoft Foundation Classes (MFC), and the document/view organization. Visual C++ is part of Microsoft's Visual Studio and provides full support of program development at all stages — from design to debugging.This second edition brings the original book up to date reflecting the evolution of Visual C++ and the Windows environment since the first edition. All example projects, figures and text in the book have been revised and coverage of touch screen developments has been added. Two new chapters on touch screen programming are based on programming strategies developed throughout the book. New examples demonstrate touch screen operations and consider programming for a tablet environment. More than seventy example projects are provided in the book's Companion Media Pack. The structure and coding for each example project are described thoroughly in a step-by-step fashion. Exercises at the end of each chapter provide opportunities to revisit and extend the tutorial examples. The media pack files include complete program code for all projects as well as files with classes and functions for handling geometric objects and graphs. The graphics examples require only standard Microsoft resources and may be easily adapted for a wide variety of application programs.The Companion Media Pack can be readily updated as Visual C++ continues to evolve. For example, the first update of the media pack was made after the release of a new version of Visual C++. It provides a full set of example projects developed with the new version as an addition to the book's original examples. Continuing updates of the media pack are planned as appropriate.
48.0 Out Of Stock
Introduction To Windows And Graphics Programming With Visual C++ (With Companion Media Pack) (Second Edition)

Introduction To Windows And Graphics Programming With Visual C++ (With Companion Media Pack) (Second Edition)

by Roger W Mayne
Introduction To Windows And Graphics Programming With Visual C++ (With Companion Media Pack) (Second Edition)

Introduction To Windows And Graphics Programming With Visual C++ (With Companion Media Pack) (Second Edition)

by Roger W Mayne

Paperback(2nd ed.)

$48.00 
  • SHIP THIS ITEM
    Temporarily Out of Stock Online
  • PICK UP IN STORE

    Your local store may have stock of this item.

Related collections and offers


Overview

The Companion Media Pack is available in the .Introduction to Windows® and Graphics Programming with Visual C++® (2nd Edition) provides an accessible approach to the study of Windows programming. It is intended to be an introduction to Visual C++ for technical people including practicing engineers, engineering students, and others interested in Windows programming and its convenient graphics capabilities. While the book is aimed at a technical audience, its mathematical content is modest and should be readable by most people with an interest in C++ programming. Readers are introduced to Windows programming in a natural way; making use of the object-oriented environment, the Microsoft Foundation Classes (MFC), and the document/view organization. Visual C++ is part of Microsoft's Visual Studio and provides full support of program development at all stages — from design to debugging.This second edition brings the original book up to date reflecting the evolution of Visual C++ and the Windows environment since the first edition. All example projects, figures and text in the book have been revised and coverage of touch screen developments has been added. Two new chapters on touch screen programming are based on programming strategies developed throughout the book. New examples demonstrate touch screen operations and consider programming for a tablet environment. More than seventy example projects are provided in the book's Companion Media Pack. The structure and coding for each example project are described thoroughly in a step-by-step fashion. Exercises at the end of each chapter provide opportunities to revisit and extend the tutorial examples. The media pack files include complete program code for all projects as well as files with classes and functions for handling geometric objects and graphs. The graphics examples require only standard Microsoft resources and may be easily adapted for a wide variety of application programs.The Companion Media Pack can be readily updated as Visual C++ continues to evolve. For example, the first update of the media pack was made after the release of a new version of Visual C++. It provides a full set of example projects developed with the new version as an addition to the book's original examples. Continuing updates of the media pack are planned as appropriate.

Product Details

ISBN-13: 9789814699402
Publisher: World Scientific Publishing Company, Incorporated
Publication date: 07/24/2015
Edition description: 2nd ed.
Pages: 480
Product dimensions: 6.00(w) x 9.00(h) x 1.10(d)

Table of Contents

Preface v

Chapter 1 Basic Concepts 1

1.1 Background 2

1.2 Getting Started with Visual C++ 4

1.3 A First Program 7

1.4 Exploring the Project Folder 15

1.5 Modifying the HelloProject 18

1.6 Creating a "Release" Version 23

1.7 Exploring the "Media Pack" and Example Programs 24

1.7.1 The Hello 10 program 27

1.7.2 Adding a clear screen function 28

1.7.3 Accepting input into the Hello example 30

1.8 Performing Simple Calculations 32

1.8.1 Simply adding 33

1.8.2 Including an Add subroutine 34

1.8.3 Running repeated additions 35

1.8.4 Compounding interest 37

1.9 Exercises 40

Chapter 2 Arrays, Pointers and Structures 43

2.1 'Working with a One-Dimensional Array 44

2.2 Using a Pointer for a One-Dimensional Array 47

2.2.1 The basic pointer concept 47

2.2.2 The pointer concept for a one-dimensional array 49

2.2.3 Using a pointer with a one-dimensional array 51

2.2.4 A vector summing function with pointers 53

2.3 Working with a Two-Dimensional Array 56

2.4 Pointing to a Two-Dimensional Array 58

2.4.1 A matrix pointer program 59

2.4.2 Matrix multiplication with pointers 61

2.5 Structures 65

2.5.1 A first example of a data structure 66

2.5.2 Further exploring the structure AddData 68

2.5.3 Pointing to a structure 70

2.5.4 An array of structures 72

2.6 Exercises 75

Chapter 3 Introducing Classes and Objects 77

3.1 A First Example of C++Classes 77

3.2 Variations on the Rectangles Program 81

3.3 Using Separate Files 84

3.3.1 Another arrangement with separate files 88

3.4 Multiple Classes 90

3.5 An Example of Derived Classes 93

3.5.1 Using a pointer array with derived classes 97

3.6 Simulating the Document/View Architecture 99

3.6.1 The DocView project 100

3.6.2 The document pointer 105

3.6.3 Using "Get" functions 107

3.6.4 Using objects as member variables in a document 109

3.7 Exercises 113

Chapter 4 Beginning Windows Programming 115

4.1 A Blank Project 116

4.1.1 Exploring BlankProject 120

4.1.2 The BlankProject files 123

4.2 A First Windows Project 126

4.3 Receiving Keyboard Inputs 131

4.3.1 Creating the OnKeyDown message handler 133

4.3.2 Code for the OnKeyDown function 136

4.4 Revision of the KeyStrike Program 139

4.4.1 Coding for KeyStrikeMv 143

4.5 Using the Document Class for Storing the "Key" 145

4.6 Exercises 149

Chapter 5 Basic Graphics 151

5.1 Drawing with the Mouse 151

5.2 Saving the Drawn Image 157

5.2.1 Creating member variables for SimpleDraw 158

5.2.2 Adding the pen and drawing 160

5.3 Drawing with Rubber-Banding 164

5.4 Moving an Image - Simple Forms of Animation 169

5.4.1 Movement by mouse inputs 172

5.4.2 Movement by keyboard input 173

5.5 Including Circles 176

5.5.1 Drawing and storing the circles 176

5.5.2 Controlling the drawing mode 179

5.6 Snap-to-Grid and Saving Data to Files 183

5.6.1 Saving drawing data in a file 187

5.7 Printing a Full Size Drawing 189

5.7.1 Carrying out the coordinate changes 192

5.8 Exercises 195

Chapter 6 Introducing Windows Tools 197

6.1 A First Look at Resource Editing 198

6.1.1 Cleaning up the drop down menus 198

6.1.2 Cleaning up the toolbar 201

6.1.3 Editing the 'About" dialog 203

6.1.4 Installing Delete Line as an edit command 207

6.1.5 Including accelerator keys 211

6.2 Adding an Item to the Menu Bar (Version 2.0) 213

6.3 A Drop Down Menu for Color Selection (Version 3.0) 218

6.3.1 Providing a functional connection to the menu items 221

6.3.2 Providing check marks 224

6.4 Adding Toolbar Buttons (Version 4.0) 227

6.5 Creating and Using a Dialog Window (Version 5.0) 231

6.5.1 Preparing for line width adjustment 232

6.5.2 Creating a menu item for the dialog window 233

6.5.3 Developing the dialog window for line width 234

6.5.4 Code for the function OnLinedialogLinewidth 239

6.6 Exercises 242

Chapter 7 More Adventures with Windows Tools 245

7.1 SnapDraw (Version 0.0) 246

7.1.1 Customizing the SnapDraw icons 247

7.2 First Revision of SnapDraw (Version 1.0) 252

7.3 Grid Size Adjustment andOnSize (Version 2.0) 257

7.3.1 Creating the menu item Grid Size and its function 257

7.3.2 Creating the dialog window Set Grid Size 259

7.3.3 Programming the function OnGridSize 261

7.3.4 Malting use of m_VGrid and m_HGrid 264

7.3.5 The OnSize function 266

7.4 Using Radio Control Buttons (Version 3.0) 268

7.4.1 The programming changes 269

7.4.2 Creating the radio button dialog 270

7.4.3 Preparing code for the dialog 275

7.5 Scrolling with Multiple Documents (Version 4.0) 278

7.6 Writing Output Files in Text Format (Version 5.0) 280

7.6.1 Installing the File Format item on the menu bar 281

7.6.2 Adding code 282

7.7 Exercises 287

Chapter 8 Classes, Objects and Animation 289

8.1 Adding a Class to an MFC Application 290

8.2 A Class for Two-Dimensional Shapes 294

8.2.1 Example use of the class C2DShapes 301

8.3 Forming Other Shapes Classes 304

8.4 A Planet Simulation 309

8.5 A Simple Robot Animation 315

8.5.1 The robot model 316

8.5.2 Displaying the robot 319

8.5.3 Positioning and orienting the robot parts 321

8.6 Exercises 324

Chapter 9 Classes for Graphs, Plotting and Calculations 327

9.1 Developing Classes for Graphs and Curves 327

9.1.1 Displaying a graph 330

9.1.2 The CCurves class 333

9.1.3 Plotting in the CGraphs class 334

9.2 Operation of the Grapher Program 335

9.3 Working with an Array of Graphs 338

9.4 Adding Graphs and Text to the Planet Simulation 342

9.4.1 The class CTextBoxes 343

9.4.2 Modifying the planet simulation 344

9.5 Color Contour Plotting 349

9.5.1 Storing the array data 350

9.5.2 Using color quantitatively 352

9.5.3 A function for color plotting 355

9.5.4 Using the plotting tools 358

9.6 One Last Graphing Example 361

9.6.1 Organization of the program 363

9.6.2 Preparing the data 365

9.6.3 Generating the display 368

9.7 Exercises 369

Chapter 10 Introducing Touch Screen Programming 373

10.1 Comments on Touch Screen Programming 374

10.2 An Example Program Using the Zoom Gesture 375

10.2.1 Basic programming concepts for gestures 377

10.2.2 Program structure for zoom and pinch in FirstGesture 380

10.3 A Detailed Look at the Gesture Functions 384

10.3.1 Programming of GestureDetails 386

10.3.2 Considering mouse clicks 391

10.4 Using Gestures in the SimpleAnimate Example 394

10.4.1 Implementing image rotation 397

10.4.2 Considering the other gesture functions 399

10.4.3 Managing the mouse operations 401

10.5 Touch Interactions with "RegisterTouchWindow" 403

10.5.1 Exploring the function OnTouchInputs 403

10.5.2 Considering the OnTouchInput function 407

10.6 Drawing Examples Using OnTouchlnput 410

10.6.1 Line drawing using the touch screen 411

10.6.2 Drawing continuous curves with Scribble 414

10.7 Exercises 418

Chapter 11 Additional Topics in Gesture and Touch Screen Programming 421

11.1 Zooming and Panning in a Drawing Project 422

11.1.1 Implementing zooming and panning operations 425

11.1.2 Panning with OnGesturePan 427

11.1.3 Drawing and panning with mouse functions 428

11.2 Gesture Functions and Two-Dimensional Shapes 431

11.2.1 Revisiting the class C2DShapes 431

11.2.2 Adding touch screen capability to the MiniRobot 438

11.3 Displaying Graphs in the Touch Screen Environment 441

11.3.1 Extending the Grapher project to the touch screen 441

11.4 Managing Multiple Graphs on a Touch Screen 445

11.4.1 Strategy for programming TouchGrapber+ 446

11.4.2 Touch screen interactions in TouchGrapher+ 451

11.5 Exercises 454

Appendix 457

Index 461

From the B&N Reads Blog

Customer Reviews