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

 

Index


Note: Page numbers in italics refer to figures or tables.

Special Characters and Numbers
16550-compatible serial interface, 540

A
accelerators, as resources, 127, 128–29
ACCELERATORS resource type, 127
accept function, 601, 628
AccessCode parameter, 934
AC_LINE_BACKUP_POWER flag, 922
AC_LINE_OFFLINE flag, 922
AC_LINE_ONLINE flag, 922
ACLineStatus field, 922
AC_LINE_UNKNOWN flag, 922
ActionFlags field, 714
ActiveSync, 635, 637, 665. See also file filters
active window, 86
Address field, 630
address space
   for applications, 354–57
   Windows CE overview, 350–54
Advise method, 672
AF_INET format, 599, 600
AF_IRDA format, 599, 600
AlbumDB.c file, 438–62
AlbumDB example program, 433–63
AlbumDB.h file, 436–38
AlbumDB.rc file, 433–35
AllocationBase field, 361, 363
AllocationProtect field, 362
Alt key, 104, 112
ampersand (&), 126, 173
animation control, 345
annunciators, taskbar, 743
AppendMenu function, 123, 797
application launch keys
   changing registry entries, 759–60
   dynamically overriding, 761–62
   overview, 757
   using, 759–60
applications. See also example programs; game API (GAPI)
   command line, 752–57
   cross-platform, 911–23
   memory for, 354–57
   multiple instances, 716–17, 760, 765
APP_RUN_TO_HANDLE_NOTIFICATION constant, 716
AppWizard, 784
Arc function, 70
ArcTo function, 70
asterisk (*), as wildcard, 411
asynchronous driver I/O, 952–56
auto-commit memory, 358
AutoRun feature, Pocket PCs, 818–20
AutoStart key, 671
AutoStartOnConnect key, 670, 671
AutoStartOnDisonnect key, 671
aygshell.lib file, 779

B
background color, 39–40, 41, 46, 47, 205
background mode, 40, 41, 46, 47
backlit displays, 919
BaseAddress field, 361, 363
BatteryChemistry field, 923
battery drivers, 922
BatteryFlag field, 922
BatteryFlagPercent field, 923
BatteryFullLifeTime field, 923
BatteryLifeTime field, 923
BATTERY_LIFE_UNKNOWN flag, 923
battery-powered systems, 909–10
BaudRate field, 544
BeginPaint function, 30, 31, 37, 60
beginthreadex function, 628
biBitCount parameter, 66
BI_BITFIELDS flag, 66
biClrImportant parameter, 66
biClrUsed parameter, 66
biCompression field, 66
biHeight parameter, 66
bind function, 599, 600–601
BIOS (basic input-output system), 348
biPlanes parameter, 66
BI_RGB flag, 66
biSizeImage field, 66
BitBlt function, 68, 69
BITMAPINFOHEADER structure, 65–66, 72
BITMAPINFO structure, 65, 72
BITMAP resource type, 127
bitmaps
   adding to command bar buttons, 268–69
   adding to menu bars, 786–87
   creating, 63
   device dependent, 63–64
   device independent, 64
   four-color, 63
   loading, 64
   overview, 62–63
   predefined, 268–69, 786–87
   rendering, 67–69
   as resources, 127, 129
   selecting into device contexts, 67–69
   standard, 269, 293
   system-provided, 268–69, 786–87
BITPIXEL value, 40
biWidth parameter, 66
biXPelsPerMeter field, 66
biYPelsPerMeter field, 66
BLACK_PEN parameter, 71
blocked threads, 495–96
block mode, 650–55
BM_GETCHECK message, 169
BM_SETCHECK message, 169
BN_CLICKED notify code, 168, 169, 204
boot process
   Device.exe program, 906–7
   Explorer.exe program, 487, 909
   FileSys.exe program, 903, 904
   GWES.EXE program, 907–8
   launching custom processes, 908–9
   overview, 901–2
   vs. powering up, 909–10
   resetting system, 902–9
   role of registry, 904–8
   Shell.exe program, 905–6
   Startup routine, 902
   system configuration, 910
bOpen parameter, 874
brackets ([]), 126
brush array, 24
brushes
   for drawing shapes, 72–73
   for drawing window backgrounds, 24
   in Shapes program, 83
BS_3STATE style, 169
BS_AUTO3STATE style, 169, 204
BS_AUTOCHECKBOX style, 169, 204
BS_AUTORADIOBUTTON style, 169, 204
BS_BITMAP style, 170
BS_BOTTOM style, 170
BS_CHECKBOX style, 169
BS_ICON style, 170
BS_LEFT style, 170
BS_MULTILINE style, 170
BS_OWNERDRAW style, 170
BS_RADIOBUTTON style, 169
BS_RIGHT style, 170
BS_TOP style, 170
bTemplate parameter, 382
BtnDlg.c file, 242–47
BtnWnd.c file, 185–91
buffers, freeing, 639, 643
built-in controls, 147, 167–68. See also dialog boxes
built-in drivers, 925, 926
burnedChild field, 297
buttons. See also application launch keys
   in CtlView program, 204
   customizing appearance, 170–71
   disabled, 272–73, 293
   as keyboard keys, 757–62
   navigation, 757, 758, 758
   overview, 168
   owner-draw, 170–71
   Pocket PC, 826–27
   push buttons, 168
BUTTON statement, 209
BY_HANDLE_FILE_INFORMATION structure, 387
ByteSize field, 545

C
C library I/O functions, 752, 753
cache, LView program, 343–44
Calculator applet
   adding to Start menu on H/PCs, 740
   launching from New menu, 788–97
   sample code for launching, 490–91
calendar control, 5
callback functions, 52, 61, 149
CALLBACK type definition, 27
CAPEDIT control, 816
cascading menus, 123
Casio H/PC, 354, 355, 356
CB_ADDSTRING message, 172
cbCachedData field, 851
CB_FINDSTRING message, 172
CB_GETDROPPEDSTATE message, 173
CB_GETEDITSELECT message, 172
cbInput parameter, 651
CB_INSERTSTRING message, 172
cBitspPerPel parameter, 63
cBmpImages field, 781
CB_SETEDITSELECT message, 172
CBS_EX_CONSTSTRINGDATA extended style, 173
CB_SHOWDROPDOWN message, 173
cbSize field, 871
cbWndExtra field, 150
cbxPitch field, 825, 827
cbyPitch field, 825, 827
CCS_VERT style, 295
CeChat.c file, 559–74
CeChat example program, 556–74
CeChat.h file, 558–59
CeChat.rc file, 557–58
CeClearUserNotification function, 715–17
CeCreateDatabaseEx function, 416–17, 419–22, 427
CeCreateDatabase function, 636
CeDatabaseSeek function, 427
CEDB_ALLOWREALLOC flag, 428
CEDBASEINFO structure, 419–20, 427, 432, 644–45
CEDB_AUTOINCREMENT flag, 422
CEDB_EXNOTIFICATION flag, 423
CEDB_FIND_DATA structure, 644
CEDB_NOCOMPRESS value, 420
CEDB_PROPDELETE flag, 430
CEDB_PROPNOTFOUND flag, 429
CEDB_SEEK_BEGINNING value, 424
CEDB_SEEK_CEOID value, 424
CEDB_SEEK_CURRENT value, 425
CEDB_SEEK_END value, 425
CEDB_SEEK_VALUEFIRSTEQUAL value, 425
CEDB_SEEK_VALUEGREATER value, 425
CEDB_SEEK_VALUENEXTEQUAL value, 425
CEDB_SEEK_VALUESMALLER value, 425
CEDB_SORT_CASEINSENSITIVE flag, 421
CEDB_SORT_DESCENDING flag, 421
CEDB_SORT_UNKNOWNFIRST flag, 422
CEDB_VALIDCREATE value, 420
CEDB_VALIDDBFLAGS value, 420
CEDB_VALIDMODTIME value, 420
CEDB_VALIDNAME value, 420
CEDB_VALIDSORTSPEC value, 420
CEDB_VALIDTYPE value, 420
CeDeleteDatabaseEx function, 430
CeDeleteRecord function, 430
CeDidGetInfoEx function, 431–32
CEDIRINFO structure, 432
CeEnumDBVolumes function, 418–19
CEF (Common Executable Format), 819
CEFILEINFO structure, 432
CeFindAllDatabases function, 644, 645
CeFindAllFiles function, 641–43, 650
CEFind.c file, 754–56
CE_FIND_DATA structure, 642–43, 650
CEFind example program, 753–57
CeFindFirstDatabaseEx function, 430–31
CeFindFirstFile function, 641
CeFindNextDatabaseEx function, 430–31
CeFindNextFile function, 641
CE_FRAME flag, 550
CeFreeNotification function, 424
CeGetCallerTrust function, 516
CeGetCurrentTrust function, 516
CeGetDesktopDeviceCaps function, 640
CeGetDiskFreeSpaceEx function, 650
CeGetLastError function, 639
CeGetOidInfoEx function, 432
CeGetOidInfo function, 643
CeGetPassword function, 640
CeGetSpecialFolderPath function, 645
CeGetStorageInformation function, 650
CeGetStoreInformation function, 640
CeGetTempPath function, 645
CeGetThreadPriority function, 499
CeGetUserNotification function, 733–34
CeGetUserNotificationHandles function, 732
CeGetUserNotificationPreferences function, 714–15
CeGetVersionEx function, 637
CeGetWindow function, 646
CEGUID, 417, 427, 430, 431
CeHandleAppNotifications function, 716
CeMountDBVol function, 417–18
CE_NOTIFICATION_INFO_HEADER structure, 733
CENOTIFICATION structure, 423–24
CE_NOTIFICATION_TRIGGER structure, 713, 716, 718–19, 733
CENOTIFYREQUEST structure, 423
CEOIDINFO structure, 431–32
CeOpenDatabaseEx function, 422–24
CE_OVERRUN flag, 550
Ce prefix, 636
CEPROPID structure, 427–28, 429
CEPROPVAL structure, 425–26, 429, 430
CeRapiFreeBuffer function, 639, 643, 645, 650
CeRapiGetError function, 639
CeRapiInitEx function, 638, 650
CeRapiInit function, 638, 650, 665
CeRapiInvoke function, 640, 651, 652, 654, 655, 665
CeRapiUninit function, 639, 650
CeReadRecordPropsEx function, 427–29
CeReadRecordProps function, 463, 645
CERECORDINFO structure, 432
CeRunAppAtEvent function, 711, 719
CeRunAppAtTime function, 711
CE_RXPARITY flag, 550
CeSeekDatabase function, 424–27
CeSetDatabaseInfoEx function, 422, 427
CeSetThreadPriority function, 499
CeSetThreadQuantum function, 500
CeSetUserNotificationEx function, 711, 712–13, 717, 718
CeSetUserNotification function, 711
CeSHCreateShortcut function, 645
CeSHGetShortcutTarget function, 645
CeSvcClose function, 667, 668
CESVC_CUSTOM_MENUS registry key, 666
CeSvcDeleteVal function, 669
CESVC_DEVICE_SELECTED registry key, 667
CESVC_DEVICES registry key, 666, 667
CESVC_DEVICEX registry key, 666, 667
CeSvcEnumDevices function, 687
CeSvcEnumProfiles function, 668
CESVC_FILTERS registry key, 666, 667, 687
CeSvc functions, 687, 688–89
CeSvcGetBinary function, 669
CeSvcGetDword function, 669
CeSvcGetString function, 668, 669
CeSvcOpenEx function, 667
CeSvcOpen function, 666–67, 670, 671, 687
CESVC_ROOT_MACHINE registry key, 666
CESVC_ROOT_USER registry key, 666
CESVC_SERVICES_COMMON registry key, 666
CESVC_SERVICES_USER registry key, 667
CeSvcSetBinary function, 669
CeSvcSetDword function, 669
CeSvcSetString function, 669, 671, 687
CESVC_SYNC_COMMON registry key, 666
CESVC_SYNC registry key, 667
CE_TXFULL flag, 550
CE_USER_NOTIFICATION structure, 713–14, 733
CeUtil functions, 665–70, 687
CEVT_LPWSTR constant, 421
CeWriteRecordProps function, 430
CFF_CONVERTINFO structure, 691
CFF_DECLARE_ERROR macro, 694
CFF_DESTINATIONFILE structure, 692
CFF_SOURCEFILE structure, 692
cFindData parameter, 644
cHandles parameter, 732
character mode API, 752
char fields, 598
char variable type, and Hungarian notation, 15
chClsExtra field, 23
check boxes, 169, 204, 205
CheckMenuItem function, 123
child windows
   in CtlView program, 203–4
   FontList2 program, 151–67
   and input focus, 86
   for input panel windows, 868
   overview, 148
   for Today screen items, 851–52, 853
chInQue field, 551
Chord function, 70
chOutQue field, 551
chSize field, 166, 296, 638, 744, 781, 822
chStructure field, 580
circles, drawing, 74
ClearCommBreak function, 549, 550
ClearCommError function, 550–51
client area, 30
client/server model, and stream socket connections, 598–99
ClientWnd.c file, 157–63
clipboard, 357
clipping regions, 37
Close button, 29, 33, 277
CloseDestinationFile method, 692
xxx_Close function, 933, 935
CloseHandle function, 384, 407, 505, 511, 512, 540, 935
closesocket function, 603
CloseSourceFile method, 692
CLRBREAK flag, 550
CLRDTR flag, 550
clrFore field, 297
CLRIR flag, 550
CLRRTS flag, 550
CLSID key, 685, 687, 823
CmdBand.c file, 306–16
CmdBand example program, 303–17
CmdBand.h file, 304–6
CmdBand.rc file, 303–4
CmdBar.c file, 282–92
CmdBar example program, 278–93
CMDBAR_HELP flag, 277
CmdBar.h file, 280–82
CMDBAR_OK flag, 277
CmdBar.rc file, 278–80
CMD.EXE program, 753
CnctNote.cpp file, 678–83
CnctNote example program, 675–84
CnctNote.h file, 676–77
CnctNote.rc file, 675–76
CNT_CLASSICTIME flag, 716
CNT_PERIOD flag, 713
CNT_TIME flag, 713
CoCreateInstance function, 672, 674, 684
code wizards, 778, 780
CoInitialize function, 672
colon (:) in device driver names, 926
color
   background, 39–40, 41, 46, 47, 205
   and controls, 205
   creating brushes to fill shapes, 72–73
   foreground, 39–40, 46, 47
   four-color bitmaps, 63
Color common dialog, 222, 223, 258
COLOREF parameter, 71
COLOR_STATIC constant, 205
combo boxes, 168, 172–73, 275, 293
COMMANDBANDRESTOREINFO structure, 316
command bands
   adding to applications, 295–99
   creating, 294–95
   handling messages, 302–3
   image lists, 294
   initializing, 299–300
   vs. menu bars, 775–76
   overview, 293
   saving band layout, 300–302
   vertical, 295, 296–97
CommandBands_AddAdornments function, 300
CommandBands_AddBands function, 295–99
CommandBands_Create function, 294–95, 299
CommandBands_GetCommandBar function, 299
CommandBands_GetRestoreInformation function, 300–301, 317
CommandBands_Height function, 302
CommandBands_IsVisible function, 303
COMMANDBANDSRESTOREINFO structure, 300–301, 302
CommandBands_Show function, 302–3
CommandBar_AddAdornments function, 29, 277
CommandBar_AddBitmap function, 268–69, 270, 272, 813
CommandBar_AddButtons function, 270–71
CommandBar_AddToolTips function, 276–77
CommandBar_AlignAdornments function, 277
CommandBar_Create function, 29, 266–67
CommandBar_Destroy function, 31–32, 277–78
CommandBar_DrawMenuBar function, 267–68
CommandBar_GetMenu function, 267
CommandBar_Height function, 30, 277
CommandBar_InsertButton function, 271
CommandBar_InsertComboBox function, 275–76
CommandBar_InsertMenubarEx function, 124, 267
CommandBar_InsertMenubar function, 267
CommandBar_IsVisible function, 277
command bars
   adding buttons to, 268–69
   adding menus to, 267–68
   attaching menus to, 29, 124
   combo boxes for, 275–76
   creating, 266–67
   design guidelines, 278
   destroying, 31–32, 33, 277–78
   disabled buttons, 272
   drop-down buttons for, 273–75
   example program, 278–93
   handling button clicks, 272
   hiding/showing, 277
   vs. menu bars, 775–76
   new to Windows CE, 5
   overview, 266
   on Pocket PCs, 33, 34
   referencing images, 270–71
   resizing, 277, 293
   role in client area, 30
   tooltips for, 276–77
   visibility, 277
CommandBar_Show function, 277
command line applications, 752–57
commctrl.h file, 265
committed memory pages, 350, 356, 359, 360
COMMITTIMEOUTS structure, 938–39
common control library, 320
common controls
   initializing DLL, 264–65
   overview, 263–64, 266
   programming, 264–65
   using for menu bars, 786–87
common dialog library, 147–48
common dialogs, 222–23
Common Executable Format (CEF), 819
COMMPROP structure, 548–49
COMMTIMEOUTS structure, 545–46
CompactFlash cards, 818, 928
Compaq iPAQ Pocket PC, 353–54, 715, 715, 751, 752
compile-time versioning, 912–13
Component Object Model (COM)
   file filters, 684–707
   method of connection notification, 672–75
   overview, 673
ComposeLine function, 404–5
COMSTAT structure, 551
CON devices, 753
conditional code compilation, 779, 913
configuration dialog box, 850
CONNDLG_RO_PATH flag, 579
CONNECTDLGSTRUCT structure, 578–79
connect function, 602, 627
connection notification
   CnctNote program, 675–84
   COM method, 672–75
   overview, 670
   registry method, 670–71
connection-oriented connections, 598–603
connections
   datagram vs. stream, 598
   persistent, 578
   stream, 598–603
CONNECT_UPDATE_PROFILE flag, 578, 579
console applications, 752–57
console drivers, 753
CONTEXT structure, 535, 536
CONTROL_C_EXIT code, 535
control characters, 541
controls. See also common controls
   built-in, 147, 167–68
   and colors, 205
   creating, 168
   list of window classes, 168
   overview, 147, 167–68
   as window classes, 147, 167–68
CONTROL statement, 209
coordinate transformations, 36
CopyFile function, 409–10
Coredll.dll file, 356, 910, 913
cPlanes parameter, 63
crColor parameter, 71, 72
CREATE_ALWAYS flag, 381, 382, 418
CreateBitmap function, 63
CreateCompatibleBitmap function, 63
CreateCompatibleDC function, 67–68, 69
CreateDialog function, 215, 216, 813, 853
CreateDialogIndirect function, 215
CreateDialogIndirectParam function, 215
CreateDIBPatternBrushPt function, 72–73, 83
CreateDIBSection function, 65–67
CreateDirectory function, 409, 410
CreateEvent function, 504
CreateFileForMapping function, 405, 408
CreateFile function, 380–82, 404, 540, 934, 935
CreateFileMapping function, 405–6, 408–9
CreateFontIndirect function, 48–49
CreateHatchBrush function, 73, 83
CREATE_INVALIDGUID macro, 418
CreateMutex function, 511
CREATE_NEW_CONSOLE flag, 489
CREATE_NEW flag, 381, 418
CreateNewItem method, 788
CreatePen function, 71
CreatePenIndirect function, 71–72
CreatePopupMenu function, 123
CreateProcess function, 488–91, 741
CreateSemaphore function, 510
CreateSolidBrush function, 72
CREATESTRUCT structure, 122
CREATE_SUSPENDED flag, 489, 497
CREATE_SYSTEMGUID macro, 419, 431, 463
CreateThread function, 496–98, 628, 956
CreateWindowEx function, 148, 168
CreateWindow function, 25–26, 148, 168, 204, 318, 320, 323, 776, 777
critical sections, 511–12
CRITICAL_SECTION structure, 512–13
cross-platform applications, 911–23
CS_DBLCLKS style, 23, 104
CS_GLOBALCLASS style, 23
CS_HREDRAW style, 23, 778
CSIDL_BITBUCKET constant, 737
CSIDL_DESKTOP constant, 737
CSIDL_DRIVERS constant, 737
CSIDL_FAVORITES constant, 737
CSIDL_FONTS constant, 737
CSIDL_PERSONAL constant, 737
CSIDL_PROGRAMS constant, 737, 740
CSIDL_RECENT constant, 738
CSIDL_STARTMENU constant, 738
CSIDL_STARTUP constant, 738
CS_NOCLOSE style, 23
CS_PARENTDC style, 23
CS_VREDRAW style, 23, 778
CTL_CODE macro, 938
CtlID field, 170
CtlType field, 170
CtlView.c file, 178–85
CtlView example program, 174–205
CtlView.h file, 175–78
CtlView.rc file, 174
Ctrl key, 103
Ctrl-Q key, 775
current directory, 378, 411, 753
current point, 70
CW_USEDEFAULT flag, 25, 776
cxWidth field, 825
cyHeight field, 825
cyp field, 852, 866

D
databases
   deleting, 430
   designing, 416–17
   enumerating, 430–31
   opening, 422–24
   predefined data types, 420, 420
   querying information, 431–32
   searching, 424–27
   Windows CE overview, 416–17
   writing records, 430
database volumes, 417
Data field, 631
datagram connections, 598
DataSize field, 631
data types, 15–16, 416, 420, 420, 467
date and time picker control, 5, 320–22
DATETIMEPICK_CLASS class, 320
DB_CEOID_CHANGED value, 424
DB_CEOID_CREATED value, 424
DB_CEOID_DATABASE_DELETED value, 424
DB_CEOID_RECORD_DELETED value, 424
DBGPARAM structure, 943
DCBlength field, 544
DCB structure, 543–45
DDBs. See device dependent bitmaps (DDBs)
debugging
   custom Today screen items, 854
   DLLs, 757
debugging stations, 903–4
DEBUGMSG macro, 943
DEBUG_ONLY_THIS_PROCESS flag, 489
DEBUG_PROCESS flag, 489
DEBUGZONE macro, 943, 951
debug zones, 905–6, 942–44
_declspec, 653–54
decommitting virtual memory, 360–61
DefaultIcon key, 686
DEFAULT_QUALITY option, 49
xxx_Deinit function, 933, 934
DeleteCriticalSection function, 513
DeleteDC function, 69
DeleteFile function, 410
DeleteObject function, 51–52
demand paging, 354, 356
Deselect method, 869, 873
desktop, system, 6, 635. See also ActiveSync
DestroyCommandBand function, 317
DestroyWindow function, 216
device contexts
   attributes, 39–40
   functions, 38
   memory, 67–69
   overview, 30, 37
   selecting bitmaps into, 67–69
   selecting fonts into, 49–50
device dependent bitmaps (DDBs), 63–64
device drivers
   asynchronous, 952–56
   building, 940–52
   checking trust state, 516
   enumerating, 926–30
   friendly names, 928
   GenDriver program, 944–51
   installable, 926
   loading, 932
   multiple-instance, 932
   naming conventions, 926
   native vs. stream interface, 925
   overview, 925–26
   reading, 930–31
   registry entries, 928
   role in boot process, 906–7
   and stream API, 933–42
   writing, 931–42
Device.exe program, 487, 906–7, 926, 932
device independent bitmaps (DIBs), 64
DeviceIoControl function, 930–31, 938–39, 940
DEVICELIST structure, 604
dialog boxes. See also input dialogs; property sheets
   common dialog library, 147–48
   creating, 209–11
   full-screen, 813–14
   modeless, 214–16
   overview, 206
   for Pocket PC applications, 813–23
   property sheet issues, 816–18
   as resources, 206–9, 210
   and SIP, 814
DialogBox function, 210
DialogBoxIndirectParam function, 211
DialogBoxParam function, 210, 211, 214
dialog box procedures, 211–14
Dialog Manager, 221
DIALOG resource type, 127
dialogs. See dialog boxes
dialog templates, 206–9, 210
DIB_PAL_COLORS parameter, 73
DIB_RGB_COLORS parameter, 72
DIBs. See device independent bitmaps (DIBs)
DIB sections, 64–67
directories
   creating, 409, 410
   defined, 736
   vs. drives, 414–15
   vs. folders, 736
   moving, 410
   removing, 409, 410
   renaming, 410
   vs. storage devices, 379, 414
disabled buttons, 272–73, 293
disabled image list, 272, 273
DISCDLGSTRUCT structure, 580
DISC_NO_FORCE flag, 580
DispatchMessage function, 21, 129, 211, 215
display, turning off, 919–21
display buffer, writing to, 827–28
DivFile.cpp file, 699–707
DivFile.def file, 697
DivFile example program, 695–707
DivFile.h file, 697–99
DivFile.rc file, 697
DivFile.reg file, 695, 696, 696
DlgDemo.c file, 230–42
DlgDemo example program, 224–59
DlgDemo.h file, 227–30
DlgDemo.rc file, 224–27
DLGITEMTEMPLATE structure, 210
DLGTEMPLATE structure, 210
DllCanUnloadNow function, 697, 869
DllGetClassObject function, 686, 697, 868–69
DllMain function, 852, 878
DLLs. See dynamic-link libraries (DLLs)
DoActivateMain function, 32
DOC file type vs. PWD file type, 685–87
Documents submenu, 741
domains, 583
double-slash (//), 125
double-taps, 104
double word variable type, and Hungarian notation, 15
DRAFT_QUALITY option, 49
drag list control, 345
DrawButton function, 205
drawing
   brushes for, 72–73
   circles, 74
   ellipses, 74
   overview, 36–38, 70, 72
   polygons, 75
   rectangles, 73–74
   round rectangles, 75
   shapes, 73–75
DRAWITEMSTRUCT structure, 170
DrawMenuBar function, 268
DrawText function, 31, 34, 35, 39, 61
drive letters, 378, 414, 577
drives vs. directories, 414–15
drop-down buttons, 273–75, 293
drop-down list style combo boxes, 172
drop-down style combo boxes, 172
DS_ABSALIGN style flag, 207
DS_CENTER style flag, 207
DS_MODALFRAME style flag, 207
DS_SETFONT style flag, 207
DS_SETFOREGROUND style flag, 208
DT_CALCRECT flag, 39, 46
DT_CENTER flag, 39
DTM_SETFORMAT message, 321–22
DTN_FORMAT notification, 322
DTN_FORMATQUERY notification, 322
DTN_USERSTRING notification, 321
DTN_WMKEYDOWN notification, 322
DTR_CONTROL_DISABLE value, 544
DTR_CONTROL_ENABLE value, 544
DTR_CONTROL_HANDSHAKE value, 544
DTS_APPCANPARSE style, 320, 321
DT_SINGLELINE flag, 39
DTS_LONGDATEFORMAT style, 320
DTS_SHORTDATEFORMAT style, 320
DTS_SHOWNONE style, 320
DTS_TIMEFORMAT style, 320
DTS_UPDOWN style, 320
DT_VCENTER flag, 39
DuplicateHandle function, 517
dwActiveProcessorMask field, 352
dwAdditionalFlags parameter, 413
dwAllocationGranularity field, 353
dwAvailPageFile field, 354
dwAvailPhys field, 353
dwAvailVirtual field, 353, 354
dwBytes parameter, 366, 367
dwCode parameter, 938
dwContext parameter, 933
dwConversion parameter, 874
dwCreationDistribution parameter, 381, 382
dwCreationFlags parameter, 489, 491, 497
dwCurrentRxQueue field, 548
dwCurrentTxQueue field, 548
dwData field, 271
dwDbaseType parameter, 430
dwDesiredAccess parameter, 380, 405
dwDevNum field, 579
dwDisplayType field, 583
dwEvent field, 718
dwFileAttributes field, 643
dwFlagsAndAttributes parameter, 540
dwFreeType parameter, 360
dwGlobalMemoryStatus field, 353
dwHeight parameter, 828
dwImDataSize field, 823, 873
dwIndex parameter, 468
dwInfoLevel parameter, 586, 587
dwInitialSize parameter, 366
dwIoControlCode parameter, 930–31
DWL_DLGPROC value, 151
dwLenIn parameter, 938
dwLenOut parameter, 938
DWL_MSGRESULT value, 151, 222
DWL_USER value, 151, 258
dwMask field, 814
dwMaxBaud field, 548
dwMaximumSize parameter, 366
dwMaxRxQueue field, 548
dwMaxTxQueue field, 548
dwMemoryLoaded field, 353
dwMessage parameter, 743
dwMilliseconds parameter, 501, 506
dwMoveMethod parameter, 383
dwNumberOfBytesToMap parameter, 406
dwNumberOfProcessors field, 352
dwOffset parameter, 67
dwOID field, 387, 643
dwOptions parameter, 466
dwOrder field, 851
dwPageSize field, 352
dwParam field, 423
dwPlatformId field, 917
dwProcessorRevision field, 352
dwProcessorType field, 352
dwProvCapabilities field, 549
dwProvSubType field, 549
dwRop parameter, 68
dwScope parameter, 581
dwSeekType parameter, 424–25
dwSentence parameter, 874
dwServiceMask field, 548
dwSettableBaud field, 548
dwSettableData field, 549
dwSettableParams field, 549
dwSettableStopParity field, 549
dwSharedMode parameter, 381
dwSize field, 217, 218, 421
dwSize parameter, 358, 360, 361, 418, 872
dwStackSize parameter, 497
dwState parameter, 820
dwStyle parameter, 148, 276, 294–95
dwTop parameter, 828
dwTotalPageFile field, 354
dwTotalPhys field, 353, 354
dwTotalVirtual field, 353, 354
dwType field, 713
dwType parameter, 580, 581, 583
dwUsage field, 582
dwUsage parameter, 581
dwVolumeSerialNumber field, 387
dwWakeMask parameter, 508
dynamic-link libraries (DLLs)
   commctrl.dll file, 356
   coredll.dll file, 356
   game API as DLL, 824
   and module-based security, 515–16

E
edit control
   in command bands, 299
   overview, 168, 171
EditDlg.c file, 248–49
EDITTEXT statement, 208, 209
EditWnd.c file, 191–93
E_FAIL constant, 638
Ellipse function, 72, 74
ellipses, drawing, 74
eMbedded Visual C++
   compiling programs, 18
   creating files, 17
   and exception handling, 533–36
   Pocket PC issues, 778, 779
   starting, 17
embedded Windows CE versions, 712, 735–36
EM_SETSEL message, 171
EnableHardwareKeyboard function, 93
EnableMenuItem function, 123, 144
EndDialog function, 212, 216
#endif, 15, 22
EndPaint function, 30, 31, 37
EnterCriticalSection function, 512, 513
enumerating
   databases, 430–31
   device drivers, 926–30
   fonts, 52, 60, 163
   network resources, 581–85
   registered devices, 668
   registry keys, 468–69
   windows, 149–50
enumeration functions, 581–85
EnumFontFamilies function, 52, 60
EnumWindows function, 149, 517
environmental variables, 488
ERROR_ACCESS_DENIED, 516
ERROR_ALREADY_EXISTS, 382, 511
ErrorChar field, 545
ERROR_INVALID_PARAMETER, 936, 939
ERROR_NO_MORE_ITEMS, 468, 469, 583, 668, 707
EscapeCommFunction function, 549–50, 554
ES_LOWERCASE style, 171
ES_MULTILINE style, 171
ES_PASSWORD style, 171
ES_READONLY style, 171
ES_UPPERCASE style, 171
EV_BREAK flag, 542
EV_CTS flag, 542
EV_DSR flag, 542
EVENPARITY constant, 545
event objects, 504–5, 531–32
EV_ERR flag, 542
EV_RLSD flag, 542
EV_RXCHAR flag, 542
EV_RXFLAG flag, 542, 545
EvtChar field, 545
EV_TXEMPTY flag, 542
example programs
   AlbumDB, 433–63
   CeChat, 556–74
   CEFind, 753–57
   CmdBand, 303–17
   CmdBar, 278–93
   CnctNote, 675–84
   CtlView, 174–205
   DivFile, 695–707
   DlgDemo, 224–59
   FontList, 52–62
   FontList2, 151–67
   GAPIShow, 830–48
   GenDriver, 944–51
   HelloCE, 17–34
   HelloPPC, 764–74, 779
   KeyTrac, 94–103
   ListNet, 587–96
   LView, 325–44
   MenuBar, 797–813
   MySquirt, 609–28
   NewMenuX, 788–97
   NoteDemo, 719–32
   NumPanel, 877–900
   PenTrac, 105–11
   PowerBar, 855–67
   RapiDir, 646–50
   RapiFind, 656–65
   RegView, 469–86
   Shapes, 75–84
   TBIcons, 744–51
   TextDemo, 40–47
   TicTac1, 112–22
   TicTac2, 130–45
   XTalk, 519–33
EXCEPTION_ACCESS_VIOLATION code, 535
EXCEPTION_CONTINUE_EXECUTION code, 534
EXCEPTION_CONTINUE_SEARCH code, 535
EXCEPTION_EXECUTE_HANDLER code, 533
exception handling, 533–36
EXCEPTION_RECORD structure, 535
EXE files, and module-based security, 515–16
ExitProcess function, 488, 491
ExitThread function, 491, 498
explicit linking, 913–16
Explorer.exe program, 487, 909
Explorer shell
   configuring Start menu, 740–41
   launching applications, 741–43
   namespace concept, 736
   vs. other Windows CE platform shells, 735–36
   Out of Memory Error dialog box, 751–52
   role of folders, 737–39
   role of shortcuts, 739–40
   role of taskbar, 743–44
   TBIcons program, 744–51
   vs. Today screen, 735
extended dialog box styles, 208
extended list view styles, 323
ExtEscape function, 920, 921
ExtTextOut function, 61


Next




Top of Page


Last Updated: Friday, July 6, 2001