OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TGdiBase Class Reference

Root and abstract class for Windows object wrappers. More...

#include <owl/gdibase.h>

Inheritance diagram for owl::TGdiBase:
owl::TCursor owl::TDC owl::TDib owl::TEnhMetaFilePict owl::TGdiObject owl::TIcon owl::TMetaFilePict owl::TRegion

Protected Member Functions

void CheckValid (uint resId=IDS_GDIFAILURE)
 
 TGdiBase ()
 This default constructor sets Handle to 0 and ShouldDelete to true.
 
 TGdiBase (HANDLE handle, TAutoDelete autoDelete=NoAutoDelete)
 Initializes members to given values, and validates the handle.
 

Static Protected Member Functions

static void _CheckValid (HANDLE handle, uint resId=IDS_GDIFAILURE)
 

Protected Attributes

HANDLE Handle
 GDI handle of this object.
 
bool ShouldDelete
 Should object delete GDI handle in dtor?
 

Detailed Description

Root and abstract class for Windows object wrappers.

Provides basic notion of working with a handle, and constructing a C++ object with an aliased handle.

Definition at line 79 of file gdibase.h.

Constructor & Destructor Documentation

◆ TGdiBase() [1/2]

owl::TGdiBase::TGdiBase ( )
protected

This default constructor sets Handle to 0 and ShouldDelete to true.

This constructor is intended for use by derived classes that must set the Handle member later.

Definition at line 22 of file gdibase.cpp.

◆ TGdiBase() [2/2]

owl::TGdiBase::TGdiBase ( HANDLE handle,
TAutoDelete autoDelete = NoAutoDelete )
protected

Initializes members to given values, and validates the handle.

This constructor is intended for use by derived classes only.

Definition at line 34 of file gdibase.cpp.

References CheckValid().

Member Function Documentation

◆ _CheckValid()

void owl::TGdiBase::_CheckValid ( HANDLE handle,
uint resId = IDS_GDIFAILURE )
staticprotected

Definition at line 58 of file gdibase.cpp.

References owl::TXGdi::Raise().

◆ CheckValid()

void owl::TGdiBase::CheckValid ( uint resId = IDS_GDIFAILURE)
protected

Definition at line 49 of file gdibase.cpp.

References _CheckValid(), and Handle.

Member Data Documentation

◆ Handle

HANDLE owl::TGdiBase::Handle
protected

GDI handle of this object.

Definition at line 81 of file gdibase.h.

◆ ShouldDelete

bool owl::TGdiBase::ShouldDelete
protected

Should object delete GDI handle in dtor?

Definition at line 82 of file gdibase.h.


The documentation for this class was generated from the following files: