Training
Certifications
Books
Special Offers
Community




 
Programming Microsoft® Windows® CE, Second Edition
Author Douglas Boling
Pages 1040
Disk 2 Companion CD(s)
Level All Levels
Published 06/13/2001
ISBN 9780735614437
ISBN-10 0-7356-1443-1
Price(USD) $59.99
To see this book's discounted price, select a reseller below.
 

More Information

About the Book
Table of Contents
Sample Chapter
Index
Related Series
Related Books
About the Author

Support: Book & CD

Rate this book
Barnes Noble Amazon Quantum Books

 

Table of Contents


Acknowledgmentsxvii
Introductionxix
PART I WINDOWS PROGRAMMING BASICS 
1 Hello Windows CE3
    What Is Different About Windows CE3
        Fewer Resources in Windows CE Devices4
        Unicode4
        New Controls5
    It’s Still Windows Programming6
        The Window Class6
        Your First Program8
        Hungarian Notation15
        My Programming Style16
        Building HelloCE16
2 Drawing on the Screen35
    Painting Basics36
        Valid and Invalid Regions36
        Device Contexts37
    Writing Text39
        Device Context Attributes39
        The TextDemo Example Program40
        Fonts47
        The FontList Example Program52
    Bitmaps62
        Device Dependent Bitmaps63
        Device Independent Bitmaps64
        DIB Sections64
        Drawing Bitmaps67
    Lines and Shapes70
        Lines70
        Shapes72
        The Shapes Example Program75
3 Input: Keyboard, Touch Screen, and Menus85
    The Keyboard85
        Input Focus86
        Keyboard Messages86
        Keyboard Functions91
        The KeyTrac Example Program94
    The Touch Screen and the Stylus103
        Stylus Messages103
        The TicTac1 Example Program112
    Menus122
        Handling Menu Commands124
    Resources125
        Resource Scripts125
        Icons127
        Accelerators128
        Bitmaps129
        Strings129
        The TicTac2 Example Program130
4 Windows, Controls, and Dialog Boxes147
    Child Windows148
        Window Management Functions149
        Scroll Bars and the FontList2 Example Program151
    Windows Controls167
        Button Controls168
        The Edit Control171
        The List Box Control171
        The Combo Box Control172
        Static Controls173
        The Scroll Bar Control174
        The CtlView Example Program174
    Dialog Boxes206
        Dialog Box Resource Templates206
        Creating a Dialog Box209
        Dialog Box Procedures211
        Modeless Dialog Boxes214
        Property Sheets216
        Common Dialogs222
        The DlgDemo Example Program224
PART II WINDOWS CE BASICS  
5 Common Controls and Windows CE263
    Programming Common Controls264
    The Common Controls266
        The Command Bar266
        The CmdBar Example Program278
        Command Bands293
        The CmdBand Example Program303
        The Month Calendar Control317
        The Date and Time Picker Control320
        The List View Control322
        The LView Example Program325
    Other Common Controls344
    Unsupported Common Controls345
6 Memory Management347
    Memory Basics347
        About RAM348
        About ROM348
        About Virtual Memory349
        The Windows CE Address Space350
        An Application’s Address Space354
    The Different Kinds of Memory Allocation357
        Virtual Memory357
        Heaps363
        The Local Heap364
        Separate Heaps365
        The Stack368
        Static Data369
        String Resources371
        Selecting the Proper Memory Type371
        Managing Low-Memory Conditions372
7 Files, Databases, and the Registry377
    The Windows CE File System378
        The Object Store vs. Other Storage Media379
        Standard File I/O380
        Creating and Opening Files380
        Reading and Writing382
        The FileView Sample Program387
        Memory-Mapped Files and Objects405
        Navigating the File System409
    Databases415
        Basic Definitions416
        The Database API417
        The AlbumDB Example Program433
    The Registry463
        Registry Organization464
        The Registry API465
        The RegView Example Program469
8 Processes and Threads487
    Processes487
        Creating a Process488
        Terminating a Process491
        Other Processes492
    Threads493
        The System Scheduler493
        Never Do This!495
        Creating a Thread496
        Thread Local Storage501
    Synchronization503
        Events504
        Waiting...505
        Semaphores509
        Mutexes511
        Critical Sections512
        Interlocked Variable Access514
    Windows CE Security515
    Interprocess Communication516
        Finding Other Processes517
        The XTalk Example Program519
    Exception Handling533
        The __try, __except Block533
        The __try, __finally Block536
PART III COMMUNICATIONS 
9 Serial Communications539
    Basic Serial Communication539
        Opening and Closing a Serial Port540
        Reading and Writing to a Serial Port541
        Asynchronous Serial I/O542
        Configuring the Serial Port543
        Setting the Port Timeout Values546
        Querying the Capabilities of the Serial Driver547
        Controlling the Serial Port549
        Clearing Errors and Querying Status550
        Stayin’ Alive551
    The Infrared Port552
        Raw IR552
        IrComm555
    The CeChat Example Program556
10 Windows Networking and IrSock575
    Windows Networking Support575
        WNet Functions576
        The ListNet Example Program587
    Basic Sockets596
        Initializing the WinSock DLL597
        Stream Sockets598
        IrSock603
        The MySquirt Example Program609
    TCP/IP Pinging628
11 Connecting to the Desktop635
    The Windows CE Remote API636
        RAPI Overview636
        Predefined RAPI Functions640
        The RapiDir Example Program646
        Custom RAPI Functions650
        The RapiFind Example Program656
    The CeUtil Functions665
    Connection Notification670
        Registry Method670
        COM Method672
        The CnctNote Example Program675
        Connection Detection on the Windows CE Side684
    File Filters684
        Registering a File Filter684
        The File Filter Interfaces690
        The ICeFileFilterOptions Interface694
        The DivFile Filter Example695
PART IV ADVANCED TOPICS 
12 Notifications711
    User Notifications711
        Setting a User Notification712
    Timer Event Notifications717
    System Event Notifications718
    The NoteDemo Example Program719
    Querying Scheduled Notifications732
13 The Explorer Shell735
    Working with the Shell736
        The Shell Namespace736
        Special Folders737
        Shortcuts739
        Configuring the Start Menu740
        Recent Documents List741
        Launching Applications741
    The Taskbar743
        The TBIcons Example Program744
    The Out Of Memory Error Dialog Box751
    Console Applications752
        The CEFind Example Program753
    Hardware Keys757
        Virtual Codes for Hardware Keys757
        Using the Application Launch Keys759
        Dynamically Overriding Application Launch Keys761
14 Programming the Pocket PC763
    The Pocket PC Screen764
    Hello Pocket PC764
        Differences in a Pocket PC Application774
        Building HelloPPC779
    The Menu Bar779
        Creating a Menu Bar780
        Menu Bar Resources782
        Working with a Menu Bar786
        The NewMenuX Example788
        The MenuBar Example797
    Dialog Boxes813
        Full-Screen Dialog Boxes813
        Input Dialogs815
        Property Sheets816
        AutoRun818
        SHSipInfo821
    The Game API823
        GAPI Initialization825
        Drawing to the Screen827
        Indirect Access to the Frame Buffer828
        GAPI Maintenance 829
        Cleaning Up829
        The GAPIShow Example830
15 Extending the Pocket PC849
    Writing a Custom Today Screen Item849
        Creating a Today Screen Item DLL850
        The PowerBar Custom Today Screen Item855
    Writing an Input Method867
        The Components of a SIP868
        Threading Issues with Input Methods869
        The IInputMethod and IInputMethod2 Interfaces869
        The IIMCallback and IIMCallback2 Interfaces874
        The NumPanel Example Input Method877
16 System Programming901
    The Boot Process901
        Reset902
        Powering Up Doesn’t Boot the System909
    System Configuration910
    Writing Cross-Platform Windows CE Applications911
        Platforms and Operating System Versions911
        Compile-Time Versioning912
        Explicit Linking913
        Run-Time Version Checking916
        Power Management918
17 Device Drivers925
    Basic Drivers925
        Driver Names926
        Enumerating the Active Drivers926
        Reading and Writing Device Drivers930
    Writing a Windows CE Stream Device Driver931
        The Stream API933
    Building a Device Driver942
        Debug Zones942
        The Generic Driver Example944
    Asynchronous Driver I/O952
INDEX957




Top of Page


Last Updated: Saturday, July 7, 2001