没有合适的资源?快使用搜索试试~ 我知道了~
Programming Windows_5th Edition_en(Charles Petzold)
需积分: 10 16 下载量 57 浏览量
2018-05-12
15:05:30
上传
评论
收藏 9.46MB PDF 举报
温馨提示
试读
1622页
Programming Windows_5th Edition_en(Charles Petzold)
资源推荐
资源详情
资源评论
Programming Windows, Fifth Edition eBook
i
Contents
LOC Page .............................................................................................................................................. 1
Author's Note ...................................................................................................................................... 3
Section I: The Basics ............................................................................................................................ 4
Chapter 1 -- Getting Started ........................................................................................................ 4
The Windows Environment ................................................................................................. 5
Windows Programming Options ........................................................................................ 10
Your First Windows Program ............................................................................................. 15
Chapter 2 -- An Introduction to Unicode ................................................................................... 23
A Brief History of Character Sets ....................................................................................... 23
Wide Characters and C ...................................................................................................... 30
Wide Characters and Windows ......................................................................................... 37
Chapter 3 -- Windows and Messages ........................................................................................ 48
A Window of One's Own .................................................................................................... 48
The Windows Programming Hurdles ................................................................................. 77
Chapter 4 -- An Exercise in Text Output ..................................................................................... 83
Painting and Repainting ..................................................................................................... 84
An Introduction to GDI ...................................................................................................... 86
Scroll Bars ........................................................................................................................ 111
Building a Better Scroll ..................................................................................................... 123
Chapter 5 -- Basic Drawing....................................................................................................... 136
The Structure of GDI ........................................................................................................ 136
The Device Context .......................................................................................................... 141
Drawing Dots and Lines ................................................................................................... 160
Drawing Filled Areas ........................................................................................................ 190
The GDI Mapping Mode .................................................................................................. 199
Rectangles, Regions, and Clipping ................................................................................... 223
Chapter 6 -- The Keyboard ....................................................................................................... 240
Keyboard Basics ............................................................................................................... 240
Keystroke Messages ......................................................................................................... 244
Character Messages ......................................................................................................... 263
Keyboard Messages and Character Sets .......................................................................... 268
The Caret (Not the Cursor) .............................................................................................. 299
Chapter 7 -- The Mouse ........................................................................................................... 309
Mouse Basics ................................................................................................................... 309
Client-Area Mouse Messages .......................................................................................... 312
Nonclient-Area Mouse Messages .................................................................................... 321
Hit-Testing in Your Programs ............................................................................................ 324
Capturing the Mouse ....................................................................................................... 349
The Mouse Wheel ............................................................................................................ 360
Chapter 8 -- The Timer ............................................................................................................. 370
Timer Basics ..................................................................................................................... 371
Programming Windows, Fifth Edition eBook
ii
Using the Timer: Three Methods ..................................................................................... 373
Using the Timer for a Clock .............................................................................................. 382
Using the Timer for a Status Report ................................................................................ 397
Chapter 9 -- Child Window Controls ........................................................................................ 402
The Button Class .............................................................................................................. 404
Controls and Colors.......................................................................................................... 419
The Static Class ................................................................................................................ 431
The Scroll Bar Class .......................................................................................................... 432
The Edit Class ................................................................................................................... 446
The Listbox Class .............................................................................................................. 453
Chapter 10 -- Menus and Other Resources ............................................................................. 472
Icons, Cursors, Strings, and Custom Resources ............................................................... 472
Menus .............................................................................................................................. 497
Keyboard Accelerators ..................................................................................................... 531
Chapter 11 -- Dialog Boxes ....................................................................................................... 548
Modal Dialog Boxes ......................................................................................................... 549
Modeless Dialog Boxes .................................................................................................... 590
The Common Dialog Boxes .............................................................................................. 610
Chapter 12 -- The Clipboard..................................................................................................... 642
Simple Use of the Clipboard ............................................................................................ 642
Beyond Simple Clipboard Use .......................................................................................... 657
Becoming a Clipboard Viewer .......................................................................................... 663
Section II: More Graphics ................................................................................................................ 672
Chapter 13-- Using the Printer ................................................................................................. 672
Printing Fundamentals ..................................................................................................... 673
Printing Graphics and Text ............................................................................................... 696
Chapter 14 -- Bitmaps and Bitblts ............................................................................................ 721
Bitmap Basics ................................................................................................................... 721
Bitmap Dimensions .......................................................................................................... 723
The Bit-Block Transfer ...................................................................................................... 729
The GDI Bitmap Object .................................................................................................... 745
Chapter 15 -- The Device-Independent Bitmap ....................................................................... 816
The DIB File Format ......................................................................................................... 816
Displaying and Printing .................................................................................................... 852
The Union of DIBs and DDBs ............................................................................................ 902
Chapter 16 -- The Palette Manager ......................................................................................... 927
Using Palettes .................................................................................................................. 927
Palette Animation ............................................................................................................ 960
Palettes and Real-World Images ...................................................................................... 983
A Library for DIBs ........................................................................................................... 1032
Chapter 17 -- Text and Fonts .................................................................................................. 1124
Simple Text Output ........................................................................................................ 1124
Background on Fonts ..................................................................................................... 1131
The Logical Font ............................................................................................................. 1136
Programming Windows, Fifth Edition eBook
iii
Font Enumeration .......................................................................................................... 1179
Paragraph Formatting .................................................................................................... 1192
The Fun and Fancy Stuff ................................................................................................ 1220
Chapter 18 -- Metafiles .......................................................................................................... 1235
The Old Metafile Format................................................................................................ 1236
Enhanced Metafiles ....................................................................................................... 1246
Section III: Advanced Topics .......................................................................................................... 1320
Chapter 19 -- The Multiple-Document Interface ................................................................... 1320
MDI Concepts ................................................................................................................ 1320
A Sample MDI Implementation ..................................................................................... 1323
Chapter 20 -- Multitasking and Multithreading ..................................................................... 1345
Modes of Multitasking ................................................................................................... 1345
Windows Multithreading ............................................................................................... 1352
Thread Synchronization ................................................................................................. 1378
Event Signaling ............................................................................................................... 1381
Thread Local Storage ..................................................................................................... 1393
Chapter 21 -- Dynamic-Link Libraries ..................................................................................... 1396
Library Basics ................................................................................................................. 1396
Miscellaneous DLL Topics .............................................................................................. 1421
Chapter 22 -- Sound and Music ............................................................................................. 1429
Windows and Multimedia ............................................................................................. 1429
Waveform Audio ............................................................................................................ 1443
MIDI and Music .............................................................................................................. 1512
Chapter 23 -- A Taste of the Internet ..................................................................................... 1582
Windows Sockets ........................................................................................................... 1582
WinInet and FTP ............................................................................................................ 1600
About the Author........................................................................................................................... 1618
Programming Windows, Fifth Edition eBook
1
LOC Page
Copyright (c) 1998 by Charles Petzold
All rights reserved. No part of the contents of this book may be reproduced or
transmitted in any form or by any means without the written permission of the
publisher.
Library of Congress Cataloging-in-Publication Data
Petzold, Charles, 1953-
Programming Windows / Charles Petzold. -- 5th ed.
p. cm.
Rev. ed. of: Programming Windows 95.
Includes index.
ISBN 1-57231-995-X
1. Microsoft Windows (Computer file) 2. Operating systems
(Computers) I. Petzold, Charles, 1953-. Programming Windows 95.
II. Title.
QA76.76.O63P533 1998
剩余1621页未读,继续阅读
资源评论
yin_wenshan
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Screenshot_20240427_031602.jpg
- 网页PDF_2024年04月26日 23-46-14_QQ浏览器网页保存_QQ浏览器转格式(6).docx
- 直接插入排序,冒泡排序,直接选择排序.zip
- 在排序2的基础上,再次对快排进行优化,其次增加快排非递归,归并排序,归并排序非递归版.zip
- 实现了7种排序算法.三种复杂度排序.三种nlogn复杂度排序(堆排序,归并排序,快速排序)一种线性复杂度的排序.zip
- 冒泡排序 直接选择排序 直接插入排序 随机快速排序 归并排序 堆排序.zip
- 课设-内部排序算法比较 包括冒泡排序、直接插入排序、简单选择排序、快速排序、希尔排序、归并排序和堆排序.zip
- Python排序算法.zip
- C语言实现直接插入排序、希尔排序、选择排序、冒泡排序、堆排序、快速排序、归并排序、计数排序,并带图详解.zip
- 常用工具集参考用于图像等数据处理
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功