WTL Developer’s Guide
Table Of Contents
CHAPTER 2
OVERVIEW OF WTL...........................................................................................................................................4
OBJECTIVES.............................................................................................................................................................4
OVERVIEW.............................................................................................................................................................. 4
AIMS OF WTL........................................................................................................................................................5
RELATIONSHIP BETWEEN WTL, ATL AND WIN32/WIN64 API.................................................................................. 7
ALTERNATIVES TO WTL – ATL, MFC, VB, JAVA, DHTML OR …....................................................................... 10
INSTALLATION OF WTL..........................................................................................................................................11
CONTENTS OF WTL’S INSTALLATION...................................................................................................................... 14
POSSIBLE PROBLEMS WITH THE INSTALLATION............................................................................................................ 15
RESOURCES........................................................................................................................................................... 18
TARGET AUDIENCE FOR THIS DEVELOPER’S GUIDE....................................................................................................19
CHAPTER CONTENTS...............................................................................................................................................20
CHAPTER 3
WIN32 SDK WINDOWING............................................................................................................................... 21
OBJECTIVES...........................................................................................................................................................21
FUNDAMENTAL WINDOWING CONCEPTS.....................................................................................................................21
MESSAGES............................................................................................................................................................ 30
THREADS AND WINDOWING..................................................................................................................................... 32
CHAPTER 4
ATL WINDOWING.............................................................................................................................................36
OBJECTIVES...........................................................................................................................................................36
OVERVIEW............................................................................................................................................................ 36
WINDOWING WITH ATL......................................................................................................................................... 37
WINDOW CONSTRUCTION ....................................................................................................................................... 39
MESSAGE MAPS.................................................................................................................................................... 45
SUBCLASSING AND SUPERCLASSING........................................................................................................................... 58
CCONTAINEDWINDOW........................................................................................................................................... 60
HIGHER-LEVEL UI................................................................................................................................................. 61
DIALOG BOXES......................................................................................................................................................63
WINDOWING FOR ACTIVEX CONTROLS..................................................................................................................... 66
ACTIVEX CONTROL CONTAINMENT.......................................................................................................................... 70
CHAPTER 5
WTL QUICK TOUR............................................................................................................................................79
OBJECTIVES...........................................................................................................................................................79
THE WTL DISTRIBUTION....................................................................................................................................... 79
TEMPLATES AND CLASSES ...................................................................................................................................... 80
WHAT IS NOT IN WTL........................................................................................................................................ 88
DEVELOPMENT ISSUES............................................................................................................................................ 90
COMPLETE LIST OF MACROS USED IN WTL...............................................................................................................95
DEBUGGING WITH WTL......................................................................................................................................... 97
DETAILED COMPARISON BETWEEN MFC AND WTL..................................................................................................99
WTL’S CSTRING................................................................................................................................................108
CHAPTER 6
THE WTL APPWIZARD..................................................................................................................................110
OBJECTIVES.........................................................................................................................................................110
JUST SAY “HELLOWORLD”...................................................................................................................................110
MODAL DIALOG-BASED APPLICATION.................................................................................................................... 110
DEFAULT PROJECT SETTINGS................................................................................................................................. 113
SDI APPLICATION................................................................................................................................................115
MDI APPLICATION.............................................................................................................................................. 121