Cover image for Building better interfaces with Microsoft foundation classes
Title:
Building better interfaces with Microsoft foundation classes
Author:
Bugg, Keith E. (Keith Edward), 1952-
Publication Information:
New York : Wiley, [1999]

©1999
Physical Description:
xv, 368 pages ; 24 cm
General Note:
"Wiley computer publishing."

Includes index.
Language:
English
ISBN:
9780471331810
Format :
Book

Available:*

Library
Call Number
Material Type
Home Location
Status
Central Library QA76.9.U83 B84 1999 Adult Non-Fiction Central Closed Stacks
Searching...

On Order

Summary

Summary

A complete, nuts-and-bolts guide to building better interfaces.

From expert Keith Bugg, here is the first complete guide to building better user interfaces for Windows applications using MFC. Step-by-step, Bugg shows you how to implement all commonly used controls and dialog boxes, as well as those rarely covered in other books. He also shows you how to add multimedia, tips, and other enhancements for more professional applications. And he provides plenty of helpful examples and sample code for all topics covered. You get complete, hands-on coverage of:
* Common controls, including buttons, boxes, bars, spinners, TreeView, and sliders.
* Microsoft's New Common Controls.
* Common dialogs, including color, file, Find-Replace, and Cfont.
* Splitter windows and controls.
* Online help-includes coverage of the new HTML-based help standard.
* Using CFormView to insert controls directly into your application's view.
* Multimedia, including video clips, sound, animation, and more.
* Professional enhancements, such as "Tip of the Day" pop-ups, visual and color-coded cues, standards compliance, and improved consistency.

Visit the companion Web site at www.wiley.com/compbooks/bugg/ to find:
* All the examples and code from the book.
* Microsoft(r) HTML Help Toolkit.
* Microsoft(r) VidEdit Toolkit.
* Links to additional resources.


Author Notes

KEITH BUGG is a software engineer specializing in Windows development using Visual C++. He is a regular contributor to Dr. Dobb's Journal, The C++ Users Journal, and Visual C++ Developer, and he is the author of several books, including The Visual C++ Construction Kit (also from Wiley).


Table of Contents

Introductionp. ix
Author Biographyp. xv
Chapter 1 Controls and the User Interfacep. 1
The User Interfacep. 2
Role of Controlsp. 2
Data Inputp. 3
Data Outputp. 3
Feedbackp. 3
Special Controlsp. 4
Controls, Dialog Boxes, and Standardsp. 4
Using Dialog Boxesp. 6
Owner-Drawn Controls and Techniquesp. 7
Dialog-Based Applicationsp. 8
Summaryp. 9
Chapter 2 The Buttonsp. 11
Design Standards for Command Buttonsp. 12
Command Button Orientationp. 12
Labelingp. 13
The Default Pushbuttonp. 13
Keyboard Acceleratorsp. 15
Advantages of Keyboard Acceleratorsp. 15
The CButton Classp. 16
Properties and Stylesp. 16
The CBitmapButton Classp. 17
Implementing Bitmapped Buttonsp. 18
Connecting Helpp. 22
Radiobuttonsp. 22
Properties and Stylesp. 24
Radiobutton Statesp. 25
Radiobuttons and the Keyboardp. 26
Checkboxesp. 26
Properties and Stylesp. 27
Radiobutton and Checkbox Operationsp. 28
Programming Tips for Button Groupsp. 30
Summaryp. 33
Chapter 3 Edit Boxesp. 35
Edit Box Stylesp. 35
Edit Box Operationsp. 37
Retrieving Edit Box Textp. 37
Setting Edit Box Textp. 37
Disabling an Edit Boxp. 37
Highlighting Charactersp. 38
Subclassing an Edit Boxp. 38
Formatting Edit Box Inputp. 41
Numerical Inputp. 42
Summaryp. 46
Chapter 4 Listboxes and Checklist Boxesp. 47
Listboxesp. 47
Styles and Propertiesp. 48
Listbox Operationsp. 52
Owner-Drawn Listboxesp. 55
Disabling a Listbox Entryp. 62
Drawing the Checklist Boxp. 69
Summaryp. 71
Chapter 5 Status Barsp. 73
Class CStatusBarCtrlp. 74
CStatusBarCtrl Class Methodsp. 75
Status Bar Messagesp. 77
The Sample Programp. 79
Status Bars and Help Messagesp. 82
Menu Help in the Status Barp. 83
Control Help in the Status Barp. 83
Summaryp. 85
Chapter 6 Combo Boxesp. 87
The Combo Boxp. 87
Styles and Propertiesp. 88
CComboBox Class Methodsp. 89
Searching a Combo Boxp. 92
Clipboard Methodsp. 93
The Sample Programp. 93
The InitDriveList() Methodp. 95
Summaryp. 98
Chapter 7 Toolbarsp. 99
Toolbar Stylesp. 100
Toolbar Structuresp. 101
CToolBarCtrl Member Functionsp. 105
CToolBarCtrl Messagesp. 108
The Sample Programp. 112
Message Handlersp. 114
Summaryp. 115
Chapter 8 New Common Controlsp. 117
The Basicsp. 118
Custom Drawp. 119
The Custom Draw Cyclep. 121
Special Casesp. 121
The Date Pickerp. 123
Retrieving DTP Selectionp. 125
The Extended Combo Boxp. 126
Extended Combo Box Stylesp. 126
The ComboBoxEx Structuresp. 126
Extended Combo Box Messagesp. 129
The CoolBar Controlp. 131
CoolBar Stylesp. 132
CoolBar Structuresp. 132
CoolBar Messagesp. 135
Coolbar Detailsp. 136
The Sample Programp. 136
The Progress Barp. 139
The Tool Tip Controlp. 139
Tool Tip Propertiesp. 141
The ListView Controlp. 142
Stylesp. 142
Extended ListView Messagesp. 143
The Enhanced Header Controlp. 144
Stylesp. 145
Structuresp. 145
The Enhanced Tab Controlp. 147
The Enhanced TreeView Controlp. 147
The Enhanced Trackbarp. 148
The New Toolbarp. 148
ToolBar Messagesp. 149
The Sample Programp. 151
Summaryp. 153
Chapter 9 Multimedia Enhancementsp. 155
Animation Control Stylesp. 156
Animation Control Messagesp. 156
Creating Animation Controlsp. 157
Animation Control Sample Codep. 158
Creating AVI Filesp. 158
Fundamentals of Animationp. 159
The VidEdit Toolp. 160
The MCIWnd Controlp. 161
MCIWnd Functionsp. 162
The MCI Sample Programp. 164
AVIFile Functions and Macrosp. 165
Soundp. 166
Summaryp. 168
Chapter 10 Spin Controlsp. 169
Spin Control Stylesp. 170
Class Member Functionsp. 171
Spin Control Messagesp. 174
The Sample Programp. 176
Summaryp. 178
Chapter 11 Progress and Slider Controlsp. 179
Progress Gaugep. 179
Progress Gauge Class Methodsp. 180
The Slide Controlp. 181
CSlideCtrl Stylesp. 182
CSliderCtrl Notification Messagesp. 182
Primary CSlideCtrl Class Methodsp. 184
The Sample Programp. 186
Progress Gauge in the Status Barp. 186
Progress Gauge in a Dialog Boxp. 187
Additional Issuesp. 189
Summaryp. 189
Chapter 12 The Tree Controlp. 191
CTreeCtrl versus CTreeViewp. 191
Tree Control Stylesp. 192
Tree Control and Image Listsp. 193
Image List Propertiesp. 193
Tree Control Structuresp. 194
TVITEMp. 194
TVITEMEXp. 195
TVINSERTSTRUCTp. 197
NMTREEVIEWp. 198
NMTVDISPINFOp. 199
TVHITTESTINFOp. 199
NMTVKEYDOWNp. 200
TVSORTCBp. 200
Tree Item Statesp. 201
CTreeCtrl Class Membersp. 201
Tree Control Messagesp. 203
The Sample Applicationp. 207
Detecting a Selectionp. 208
Summaryp. 209
Chapter 13 The RTF Edit Controlp. 211
RTF Structuresp. 212
PARAFORMAT Structurep. 212
CHARFORMAT Structurep. 213
CHARRANGE Structurep. 215
REQRESIZE Structurep. 216
EDITSTREAM Structurep. 216
ENDDROPFILES Structurep. 217
ENPROTECTED Structurep. 217
FINDTEXT Structurep. 218
FINDTEXTEX Structurep. 218
FORMATRANGE Structurep. 218
MSGFILTER Structurep. 219
PUNCTUATION Structurep. 219
REOBJECT Structurep. 219
REPASTESPECIAL Structurep. 220
SELCHANGE Structurep. 220
TEXTRANGE Structurep. 221
RTF Messagesp. 221
Limitations, Properties, and Backward Compatibilityp. 227
The Sample Applicationp. 227
Summaryp. 232
Chapter 14 The Common Color Dialogp. 233
CColorDialogp. 234
CHOOSECOLOR Structurep. 235
Useful CColorDialog Class Methodsp. 237
CommDlgExtendedErrorp. 238
The Sample Applicationp. 238
Summaryp. 240
Chapter 15 The Common File Dialogp. 241
Creating a CFileDialog Objectp. 242
Path Field Limitsp. 243
OPENFILENAME Structurep. 244
The CommDlgExtendedError() Functionp. 251
The SHGetSpecialFolderPath() Functionp. 252
Summaryp. 252
Chapter 16 The Find-Replace Dialogp. 255
Overviewp. 256
FINDMSGSTRING Messagep. 256
FINDREPLACE Structurep. 257
Class Methodsp. 259
Callback Functionp. 261
View Considerationsp. 261
The Sample Programp. 262
Summaryp. 265
Chapter 17 CFontDialog and CPrintDialogp. 267
Class CFontDialogp. 267
LOGFONT Structurep. 268
CHOOSEFONT Structurep. 272
ChooseFont() Functionp. 275
The Hook Procedurep. 276
Class Membersp. 277
Class CPrintDialogp. 279
DEVMODE Structurep. 279
PRINTDLG Structurep. 282
PrintDlg() Functionp. 285
Class Methodsp. 285
The Sample Programp. 286
Summaryp. 288
Chapter 18 Tabbed Dialog Boxesp. 289
Class CTabCtrlp. 290
Class Methodsp. 291
The Sample Programp. 293
Summaryp. 297
Chapter 19 Class CFormViewp. 299
Creating a CForm View Objectp. 299
Step 1 Design a Dialog Templatep. 300
Step 2 Create a View Classp. 300
Step 3 Override OnUpdate()p. 301
Step 4 Transfer Datap. 301
Step 5 Connect the View Classp. 302
CSliderCtrl and CSpinButtonCtrl Problemsp. 302
Class Membersp. 303
The Sample Programp. 304
Summaryp. 306
Chapter 20 Component Gallery and Special Operationsp. 307
Context Menusp. 307
Creating Context Menusp. 308
A Better About Boxp. 311
Tip of the Day Popupp. 314
Error Handlingp. 316
GetLastError() Functionp. 316
Retrieving the Error Message Textp. 316
Customizing MDI File Newp. 317
The Dialog Barp. 319
Adding a Dialog Barp. 320
Eliminating Flicker in Controlsp. 322
Adding a Beveled Separatorp. 324
An Internet Browser Applicationp. 325
Summaryp. 327
Chapter 21 Splitter Windowsp. 329
The Basicsp. 329
Class Methodsp. 332
The Sample Programp. 334
Summaryp. 339
Chapter 22 Adding Help to the Interfacep. 341
Role of Helpp. 341
The Help Compilerp. 342
Topic Filesp. 343
The Help Compiler Workbenchp. 344
The WinHelp APIp. 345
Tool Tipsp. 349
HTML Helpp. 351
Upside-Downsidep. 351
The Toolkitp. 352
A Sample Projectp. 352
Additional Featuresp. 354
Summaryp. 358
Appendix A What's on the Web Sitep. 359
Indexp. 363

Google Preview