OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
paintdc.cpp
Go to the documentation of this file.
1//----------------------------------------------------------------------------
2// ObjectWindows
3// Copyright (c) 1992, 1996 by Borland International, All Rights Reserved
4//
5/// \file
6/// Implementation of TPaintDC, an encapsulation of client DCs used when
7/// responding to paint messages
8//----------------------------------------------------------------------------
9#include <owl/pch.h>
10#include <owl/dc.h>
11
12namespace owl {
13
15
16//
17/// Creates a TPaintDC object with the given owned window. The data member Wnd is
18/// set to wnd.
19//
21:
22 TDC()
23{
24 Wnd = hWnd;
26 CheckValid();
27}
28
29//
30//
31//
38
39} // OWL namespace
40/* ========================================================================== */
41
TDC is the root class for GDI DC wrappers.
Definition dc.h:64
void RestoreObjects()
Restores all the original GDI objects to this DC.
Definition dc.cpp:298
void CheckValid(uint resId=IDS_GDIFAILURE)
Definition gdibase.cpp:49
bool ShouldDelete
< The handle of this DC. Uses the base class's handle (TGdiBase::Handle.)
Definition gdibase.h:82
HANDLE Handle
< make this function available to derivatives
Definition gdibase.h:81
PAINTSTRUCT Ps
The paint structure associated with this TPaintDC object.
Definition dc.h:677
TPaintDC(HWND wnd)
Creates a TPaintDC object with the given owned window.
Definition paintdc.cpp:20
HWND Wnd
The associated window handle.
Definition dc.h:681
Definition of GDI DC encapsulation classes: TDC, TWindowDC, TScreenDC, TDesktopDC,...
Object Windows Library (OWLNext Core)
Definition animctrl.h:22
OWL_DIAGINFO
Definition animctrl.cpp:14