A SERVICE OF

logo

__________________________________________________________________________
Table 1.2
T pe of device context ObjectWindows DC classy
ObjectWindows-
____________________________________________________________________
encapsulated device
Memory
TMemoryDC
contexts
Metafile
TMetaFileDC
Bitmap
TDibDC
P inter
TP intDC
r
r
Window
TWindowDC
Desktop
TDesktopDC
Screen
TScreenDC
Client
TClientDC
Paint
TPaintDC
____________________________________________________________________
TGDIObject is a base class for several other classes that represent things you
GDI objects
can use to draw with and to control drawings. The following table lists
these classes and other ObjectWindows GDI support classes.
__________________________________________________________________________
Table 1.3
T pe of GDI object ObjectWindows GDI classy
GDI support classes
____________________________________________________________________
P ns
TP n
e
e
Brushes
TBrush
Fonts
TFont
Palettes
TPalette
Bitmaps
TBitmap
,
TDib
,
TUIBitmap
Icons
TIcon
Cursors
TCursor
Regions
TRegion
P ints
TP int
o
o
Size
TSize
Rectangles
TRect
Color specifiers
TColor
RGB triple color
TRgbTriple
RGB quad color
TRgbQuad
Palette entries
TPaletteEntry
Metafile
TMetafilePict
____________________________________________________________________
TP inter makes printing significantly easier by encapsulating ther
P inting classesr
communications with printer drivers. TP intout encapsulates the task ofr
printing a document. Chapter 12 discusses how to use the printing classes.
A Windows application is responsible for initializing windows and
Module and
ensuring that messages Windows sends to it are sent to the proper window.
application
ObjectWindows encapsulates that behavior in T pplication. A DLL’A s
classes
behavior is encapsulated in TModule. For full details on module and
application objects, see Chapters 16 and 3.
Chapter 1, ObjectWindows overview
25