OWLNext
7.0
Borland's Object Windows Library for the modern age
Toggle main menu visibility
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
12
namespace
owl
{
13
14
OWL_DIAGINFO
;
15
16
//
17
/// Creates a TPaintDC object with the given owned window. The data member Wnd is
18
/// set to wnd.
19
//
20
TPaintDC::TPaintDC
(HWND hWnd)
21
:
22
TDC
()
23
{
24
Wnd
= hWnd;
25
Handle
= ::BeginPaint(hWnd, &
Ps
);
26
CheckValid
();
27
}
28
29
//
30
//
31
//
32
TPaintDC::~TPaintDC
()
33
{
34
RestoreObjects
();
35
if
(
ShouldDelete
)
36
::EndPaint(
Wnd
, &
Ps
);
37
}
38
39
}
// OWL namespace
40
/* ========================================================================== */
41
owl::TDC::TDC
TDC(HDC handle)
use an existing DC, doesn't auto delete it
Definition
dc.cpp:35
owl::TDC::RestoreObjects
void RestoreObjects()
Restores all the original GDI objects to this DC.
Definition
dc.cpp:298
owl::TDC::CheckValid
void CheckValid(uint resId=IDS_GDIFAILURE)
Definition
gdibase.cpp:49
owl::TDC::ShouldDelete
bool ShouldDelete
< The handle of this DC. Uses the base class's handle (TGdiBase::Handle.)
Definition
gdibase.h:82
owl::TDC::Handle
HANDLE Handle
< make this function available to derivatives
Definition
gdibase.h:81
owl::TPaintDC::~TPaintDC
~TPaintDC()
Definition
paintdc.cpp:32
owl::TPaintDC::Ps
PAINTSTRUCT Ps
The paint structure associated with this TPaintDC object.
Definition
dc.h:677
owl::TPaintDC::TPaintDC
TPaintDC(HWND wnd)
Creates a TPaintDC object with the given owned window.
Definition
paintdc.cpp:20
owl::TPaintDC::Wnd
HWND Wnd
The associated window handle.
Definition
dc.h:681
dc.h
Definition of GDI DC encapsulation classes: TDC, TWindowDC, TScreenDC, TDesktopDC,...
pch.h
owl
Object Windows Library (OWLNext Core).
Definition
animctrl.h:22
owl::OWL_DIAGINFO
OWL_DIAGINFO
Definition
animctrl.cpp:14
source
owlcore
paintdc.cpp
Generated by
1.18.0