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_Draw
::GetSurfaceFromDC() ] [ next:
GetVerticalBlankStatus()
] [ prev:
GetScanLine()
]
public:
virtual bool __fastcall GetSurfaceFromDC( HDC pDC,
TDx_DrawSurface
* pSurface );
TD
X_
D
RAW::
G
ET
S
URFACE
F
ROM
DC
() [ component method ]
Description
The TDx_Draw::GetSurfaceFromDC method will retrieve the surface referenced by the specified
device context
handle.
Only
surfaces
that are already associated with the TDx_Draw component calling this method may be retrieved.
If the method call fails, the OnError event will be triggered with one of the following values:
DDERR_GENERIC
DDERR_INVALIDPARAMS
DDERR_OUTOFMEMORY
DDERR_NOTFOUND
Parameters
DC
The DC parameter references the handle of the display
device context
for which the
surface
is to be retrieved.
Surface
The
Surface
parameter will reference the specified surface if this method returns successfully.
See Also
TDx_DrawSurface
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
.