Welcome to
www.tdxlibrary.org
Home of the
the TDx_Library...
"RAD DirectX"
for
C++ Builder
...
|
TDx_Sound_Library v2.00 Component Reference
|
|
[ TDx_SoundKsPropertySet::OnDestroy() ]
[ next: OnError() ]
[ prev: OnCreate() ]
__published:
__property TDx_Event OnDestroy = {read=FOnDestroy, write=FOnDestroy, nodefault};
TDX_SOUNDKSPROPERTYSET::ONDESTROY()
[ component event ]
- Description
The
OnDestroy()
event
is
triggered
by
the
TDx_SoundKsPropertySet::Destroy()
method,
just
before
the
TDx_SoundKsPropertySet
internal
LPKSPROPERTYSET
interface
is
destroyed.
Note:
This
event
is
an
ideal
place
to
place
code
that
reverses
the
results
of
the
TDx_SoundKsPropertySet::OnCreate()
event.
For
example,
assume
you
have
already
setup
the
TDx_SoundKsPropertySet::OnCreate()
event
to
retrieve
the
component's
capabilities,
Create()
a
dependant
component
and
allocate
some
memory;
You
can
then
fully
automate
and
insulate
your
code
on
a
per-component
basis
by
placing
code
in
the
TDx_SoundKsPropertySet::OnDestroy()
event
to
deallocate
memory,
Destroy()
the
dependant
components
and,
when
required,
destroy
the
capabilities
component.
- See Also
- Top
If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.
|
|