OWLNext 7.0
Borland's Object Windows Library for the modern age
|
TFormatRange encapsulates the FORMATRANGE structure, which contains information that a rich edit control uses to format its output for a particular device. More...
#include <owl/richedit.h>
Public Member Functions | |
TFormatRange () | |
Constructs a default 'TFormatRange' object with all members initialized to zero. | |
TFormatRange (HDC renderDC, HDC targetDC, const TRect &renderArea, const TRect &entireArea, const TCharRange &txtRange) | |
Constructs a TFormatRange object initializing data members with the specified parameters. | |
TFormatRange (HDC renderDC, HDC targetDC, const TRect &renderArea, const TRect &entireArea, long firstChar, long lastChar) | |
void | SetRenderDC (HDC) |
Sets the device context of the device to render to. | |
void | SetTargetDC (HDC) |
Sets the device context of the target device to format for. | |
void | SetRenderRect (const TRect &) |
Sets the area to render to. | |
void | SetPageRect (const TRect &) |
Sets the entire area of the rendering device. | |
void | SetRange (const TCharRange &) |
Sets the range of text to format. | |
void | SetRange (long, long) |
Sets the range of text to format, specifying the starting and ending character offsets. | |
TFormatRange encapsulates the FORMATRANGE structure, which contains information that a rich edit control uses to format its output for a particular device.
Definition at line 156 of file richedit.h.
|
inline |
Constructs a default 'TFormatRange' object with all members initialized to zero.
Definition at line 658 of file richedit.h.
owl::TFormatRange::TFormatRange | ( | HDC | renderDC, |
HDC | targetDC, | ||
const TRect & | renderArea, | ||
const TRect & | entireArea, | ||
const TCharRange & | txtRange ) |
Constructs a TFormatRange object initializing data members with the specified parameters.
Definition at line 394 of file richedit.cpp.
References SetPageRect(), SetRange(), SetRenderDC(), SetRenderRect(), and SetTargetDC().
owl::TFormatRange::TFormatRange | ( | HDC | renderDC, |
HDC | targetDC, | ||
const TRect & | renderArea, | ||
const TRect & | entireArea, | ||
long | firstChar, | ||
long | lastChar ) |
Sets the entire area of the rendering device.
Definition at line 437 of file richedit.cpp.
void owl::TFormatRange::SetRange | ( | const TCharRange & | charRange | ) |
Sets the range of text to format.
Definition at line 446 of file richedit.cpp.
Sets the range of text to format, specifying the starting and ending character offsets.
Definition at line 455 of file richedit.cpp.
Sets the device context of the device to render to.
Definition at line 408 of file richedit.cpp.
Sets the area to render to.
Definition at line 427 of file richedit.cpp.
Sets the device context of the target device to format for.
Definition at line 417 of file richedit.cpp.