37 Handle = ::CreateDC(driver, device,
nullptr, initData);
40 <<
_T(
" with driver ") << (driver ? driver :
_T(
"NULL")));
47 :
TCreatedDC{driver.empty() ? nullptr : driver.c_str(), device.empty() ? nullptr : device.c_str(), initData}
50#if defined(OWL5_COMPAT)
61 LPCTSTR output,
const DEVMODE * initData)
65 Handle = ::CreateDC(driver, device, output, initData);
68 _T(
" with driver ") << (driver ? driver :
_T(
"NULL")));
79 driver.empty() ? 0 : driver.c_str(),
80 device.empty() ? 0 : device.c_str(),
81 output.empty() ? 0 : output.c_str(),
85 _T(
" with driver ") << driver);
95 TDC(handle, autoDelete)
98 _T(
" with handle ") <<
static_cast<void*
>(handle));
120TIC::TIC(LPCTSTR driver, LPCTSTR device,
const DEVMODE* initData)
123 Handle =
static_cast<HANDLE
>(::CreateIC(driver, device,
nullptr, initData));
126 <<
_T(
" with driver ") << (driver ? driver :
_T(
"NULL")));
133 :
TIC{driver.empty() ? nullptr : driver.c_str(), device.empty() ? nullptr : device.c_str(), initData}
136#if defined(OWL5_COMPAT)
142TIC::TIC(LPCTSTR driver, LPCTSTR device,
143 LPCTSTR output,
const DEVMODE * initData)
150 _T(
" with driver ") << (driver ? driver :
_T(
"NULL")));
161 driver.empty() ? 0 : driver.c_str(),
162 device.empty() ? 0 : device.c_str(),
163 output.empty() ? 0 : output.c_str(),
168 _T(
" with driver ") << driver);
#define TRACEX(group, level, message)
An abstract TDC class, TCreatedDC serves as the base for DCs that are created and deleted.
TCreatedDC()
Creates a device context (DC) for the given device.
TCreatedDC(LPCTSTR driver, LPCTSTR device, const DEVMODE *initData=nullptr)
Creates a device context (DC) object for the device specified by driver (driver name) and device (dev...
~TCreatedDC()
Destructor Calls RestoreObjects clears any nonzero OrgXXX data members.
TDC is the root class for GDI DC wrappers.
TDC(HDC handle)
use an existing DC, doesn't auto delete it
void RestoreObjects()
Restores all the original GDI objects to this DC.
void CheckValid(uint resId=IDS_GDIFAILURE)
bool ShouldDelete
< The handle of this DC. Uses the base class's handle (TGdiBase::Handle.)
HANDLE Handle
< make this function available to derivatives
TIC(LPCTSTR driver, LPCTSTR device, const DEVMODE *initData=nullptr)
Creates a device information context (IC) for the device specified by driver (driver name) and device...
Definition of GDI DC encapsulation classes: TDC, TWindowDC, TScreenDC, TDesktopDC,...
TAutoDelete
Flag for Handle ctors to control Handle deletion in dtor.
Object Windows Library (OWLNext Core).
DIAG_DECLARE_GROUP(OwlThread)
#define STATIC_CAST(targetType, object)