万本电子书0元读

万本电子书0元读

顶部广告

C++ Windows Programming电子书

售       价:¥

28人正在读 | 0人评论 9.8

作       者:Stefan Björnander

出  版  社:Packt Publishing

出版时间:2016-09-01

字       数:504.7万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Develop real-world applications in Windows. About This Book Create diverse applications featuring the versatility of Small Windows C++ library Learn about object-oriented programming in Windows and how to develop a large object-oriented class library in C++ Understand how to tackle application-specific problems along with acquiring a deep understanding of the workings of Windows architecture Who This Book Is For This book is for application developers who want a head-first approach into Windows programming. It will teach you how to develop an object-oriented class library in C++ and enhanced applications in Windows. Basic knowledge of C++ and the object-oriented framework is assumed to get the most out of this book. What You Will Learn Develop advanced real-world applications in Windows Design and implement a graphical object-oriented class library in C++ Get to grips with the workings of the integral aspects of the Win32 API, such as mouse input, drawing, cut-and-paste, file handling, and drop files Identify general problems when developing graphical applications as well as specific problems regarding drawing, spreadsheet, and word processing applications Implement classes, functions, and macros of the object-oriented class library developed in the book and how we implement its functionality by calling functions and macros in the Win32 API In Detail It is critical that modern developers have the right tools to build practical, user-friendly, and efficient applications in order to compete in today’s market. Through hands-on guidance, this book illustrates and demonstrates C++ best practices and the Small Windows object-oriented class library to ease your development of interactive Windows applications. Begin with a focus on high level application development using Small Windows. Learn how to build four real-world applications which focus on the general problems faced when developing graphical applications. Get essential troubleshooting guidance on drawing, spreadsheet, and word processing applications. Finally finish up with a deep dive into the workings of the Small Windows class library, which will give you all the insights you need to build your own object-oriented class library in C++. Style and approach This book takes a tutorial-style approach that will demonstrate the features of a C++ object-oriented library by developing interactive Windows applications.
目录展开

C++ Windows Programming

C++ Windows Programming

Credits

About the Author

About the Reviewer

www.PacktPub.com

eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Dedication

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

1. Introduction

The library

Summary

2. Hello, Small World!

Hello, Small Windows!

The circle application

The main window

The CircleDocument class

The Circle class

Summary

3. Building a Tetris Application

The MainWindow function

The Tetris window

Keyboard input

Drawing

Input focus

The timer

New figures

Game over

New game

Deleting and flashing rows

Closing the window

The TetrisFigure class

The red figure

The brown figure

The turquoise figure

The green figure

The yellow figure

The blue figure

The purple figure

The GameGrid class

Invalidating and drawing squares

Summary

4. Working with Shapes and Figures

The MainWindow function

The DrawDocument class

The application modes

The DynamicList class

Initialization

Mouse input

Painting

The File menu

Cut, copy, and paste

The Modify menu

The Add menu

The cursor

Summary

5. The Figure Hierarchy

The DrawFigure class

The LineFigure class

The ArrowFigure class

The RectangleFigure class

The EllipseFigure class

Summary

6. Building a Word Processor

Auxiliary classes

Character information

Line information

The Paragraph class

The MainWindow class

The WordDocument class

The caret

Mouse input

Touchscreen

Page setup and calculation

Painting and drawing

File management

Cut, copy, and paste

Delete

Page break

Font

Alignment

Summary

7. Keyboard Input and Character Calculation

Keyboard handling

Arrow keys

Home and End

Shift arrow keys

Shift Page Up and Page Down

Shift Home and End

Control Home and End

Shift Control Home and End

Neutral keys

Visible characters

Character calculation

Character size and ascent line

Line generation

Regular and justified rectangle list generation

Invalidate rectangle set generation

Summary

8. Building a Spreadsheet Application

The MainWindow class

The CalcDocument class

Mouse input

Scrolling and marking

Painting

Visibility

Marking and updating

Keyboard input

File management

Cut, copy, and paste

Font and color

Alignment

Source and target sets

Graph searching

Error handling

Summary

9. Formula Interpretation

Formula interpretation

The tokens

The tree node

The Scanner – Generating the list of tokens

The parser – Generating the syntax tree

Matrix and reference

The reference class

The Matrix class

The cell

Character input

Drawing

Caret rectangle list generation

Formula interpretation

File management

Further reading

Summary

10. The Framework

An overview of Small Windows

"Hello" window for the Win32 API

The MainWindow function

The WinMain function

The Application class

The Win32 API Windows classes

The message loop

The Window class

Initialization

Header and visibility

The touch screen

Invalidation and window updates

Preparing the device context

Unit transformation

Window size and position

Text metrics

Closing the window

The MessageBox method

The Graphics class

Summary

11. The Document

The Document class

Initialization

The Document header

The caret

The mouse wheel

The menu bar

The scroll bar

The DocumentProc method

The Menu class

The Accelerator class

The StandardDocument class

Initialization

Standard menus

File management

Cut, copy, and paste

Drop files

Page size

Page setup

Printing

Summary

12. The Auxiliary Classes

The Size class

The Point class

The Rect class

The Color class

The Font class

The Cursor class

The DynamicList class

The Tree class

The InfoList class

Strings

Summary

13. The Registry, Clipboard, Standard Dialogs, and Print Preview

The registry

The Clipboard class

ASCII and Unicode lines

Generic information

Standard dialogs

The Save dialog

The Open dialog

The Color dialog

The Font dialog

The Print dialog

Print preview

Keyboard input

Scroll bar

Summary

14. Dialogs, Controls, and Page Setup

Custom dialogs

Controls

The button controls

List controls

Combo box

Label

The TextField class

Converters

Signed integers

Unsigned integers

Double values

Strings

Rational numbers

Complex numbers

Page setup

Page setup information

The Page Setup dialog

The Template function

Summary

A. Rational and Complex Numbers

Rational numbers

Complex numbers

Summary

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部