15#if defined(__BORLANDC__)
29const uint32 TMetaFilePict::MFHeaderKey = 0x9AC6CDD7L;
32static TBinField MetaFileHeaderField[]={
70 if ((MFHeader.
key == MFHeaderKey)
76 file.GetStatus(status);
111 Extent.cx =
MulDiv(Extent.cx, 2540, MFHeader.
inch);
112 Extent.cy =
MulDiv(Extent.cy, 2540, MFHeader.
inch);
249 WARNX(
OwlGDI, (Extent.
X() == 0) || (Extent.
Y() == 0), 0,
"Constrained metafile extent == 0");
259 if (Extent.
X() == 0) {
266 else if (Extent.cx > 0) {
305 return ::PlayMetaFile(dc, *
this);
394 return ::PlayEnhMetaFile(dc, *
this,
rect);
#define WARNX(group, condition, level, message)
#define DIAG_DECLARE_GROUP(group)
The clipboard class encapsulates the methods for the clipboard object of Windows.
HANDLE SetClipboardData(uint format, HANDLE handle)
Copy the data onto the clipboard in the format.
TDC is the root class for GDI DC wrappers.
virtual int GetDeviceCaps(int index) const
Used under WIN3.1 or later, GetDeviceCaps returns capability information about this DC.
virtual int SetMapMode(int mode)
Sets the current window mapping mode of this DC to mode.
virtual bool SetViewportExt(const TSize &extent, TSize *oldExtent=nullptr)
Sets this DC's viewport x- and y-extents to the given extent values.
The TFile class encapsulates standard file characteristics and operations.
@ OpenExisting
Opens the file. The function fails if the file does not exist.
@ PermRead
Subsequent open operations on the object will succeed only if read access is requested.
Root and abstract class for Windows object wrappers.
void CheckValid(uint resId=IDS_GDIFAILURE)
bool ShouldDelete
Should object delete GDI handle in dtor?
HANDLE Handle
GDI handle of this object.
TRect is a mathematical class derived from tagRect.
The tagSIZE struct is defined as.
int Y() const
Returns the height.
int X() const
Returns the width.
Definition of classes for clipboard Encapsulation.
Definition of abstract GDI object class and derived classes.
TAutoDelete
Flag for Handle ctors to control Handle deletion in dtor.
static void Raise()
Construct a TXOutOfMemory exception from scratch, and throw it.
@ boLittle_Endian
LSB at lowest address: Intel //.
Object Windows Library (OWLNext Core)
ObjectWindows exception class & function definitions.
WORD checksum
XOR of previous fields.
RECT16 bbox
bounding rectangle
DWORD key
identifies file type