[ Home | Syllabus | Course Notes | Assignments | Search]
There are three sources of examples:
Many of these examples are available as single files and consolidated into a ".zip" file. I you need a zip/unzip program look here.
This page gives explanations and commentary on selected examples. Several (shown in bold) are worthy of close study.
Examples from the Book (see source code here)
ex3a | Almost "for free" SDI program with Text and Circle Demonstrates SDI software architecture, automated code generation by IDE and resource files |
ex4a ex4b |
Concept of Message Map Demonstrates mouse event message handler, OnDraw event |
ex 4c | Adds scrolling to above |
ex5a, ex5b | Fonts |
ex5c | Mouse movement tracking |
ex6a | dialog box control using the resource editor |
ex6b | More control, graphics for selection |
ex7a | Modeless dialog box |
ex7b | Use of standard file dialog box with modification. |
ex8a | Active X calendar control |
ex8b, ex8c | Active X browser control |
ex9a | internet explorer controls |
ex11a | displaying bitmaps |
ex11b | improved ex5c using bitmap |
ex11c | loading and displaying bmp files |
ex11d | Using bitmaps for button selection |
ex12a, ex12b, ex12c | adding a thread, keep user interface responsive |
ex13a | Basic document/view demo, property sheets |
ex14a, ex14b, ex14c | Adding a toolbar, status bar |
ex15a | empty persistent frame window |
ex16a, ex16b | separating document/view |
ex17a | serializing objects |
ex18a | MDI |
ex19a, ex19b | print preview |
ex20a, ex20b, ex20c, ex20d | splitter windows |
ex21a, ex21b | context sensitive help |
ex22a,b,c | Dynamic Link LIbraries (DLLs) |
ex23a | dialog based application |
ex24a,b,c | ActiveX (COM) |
ex25a,b,c | Automation |
ex26a | Clipboard |
ex26b | OLE drag and Drop |
ex27a | Structured Storage |
ex27b | Persistent DLL |
ex28a | OLE mini server |
ex28b | embedding container |
ex29 | ATL |
ex30 | ATL Active X controls |
ex31a | ODBC recordsset |
ex32 | DOA |
ex34a | web server |