Welcome to
www.tdxlibrary.org
Home of the
t
h
e
T
D
x
_
L
i
b
r
a
r
y
...
"
R
A
D
D
i
r
e
c
t
X
"
for
C++ Builder
...
TDx_Draw_Library v2.00 Component Reference
[
TDx_DrawSurface
::GetDC() ] [ next:
GetDDInterface()
] [ prev:
GetColorKey()
]
public:
virtual bool __fastcall GetDC( HDC* pDC );
TD
X_
D
RAW
S
URFACE::
G
ET
DC
() [ component method ]
Description
The TDx_DrawSurface::GetDC method will create a
GDI
compatible
device context
handle for the
surface
.
Calling this method will lock the surface until
TDx_DrawSurface::ReleaseDC()
is called.
If the method call fails, the OnError event will be triggered with one of the following values:
DDERR_DCALREADYCREATED
DDERR_GENERIC
DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
DDERR_INVALIDSURFACETYPE
DDERR_SURFACELOST
DDERR_UNSUPPORTED
DDERR_WASSTILLDRAWING
Parameters
DC
The DC parameter will reference the
device context
handle for the
surface
if this method returns successfully.
See Also
TDx_DrawSurface
TDx_DrawSurface::OnSurfaceLost()
Top
If you would like to submit additions or improvements to this page, click:
darren_john_dwyer@hotmail.com
.
Top
Welcome
|
Latest News
|
Tools
|
Demos
|
Tutorials
|
Reference
|
Register
|
Downloads
FAQ
|
Links
|
Site Information
This page is
Copyright
© 2019 Darren John Dwyer, Australia. All Rights Reserved.
Borland C++ Builder, CBuilder, etc are
Trademarks
of
Borland Corporation
.
DirectX, DirectDraw, Windows, etc are
Trademarks
of
Microsoft Corporation
.