售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
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
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜