Welcome to
www.tdxlibrary.org
Home of the
the TDx_Library...
"RAD DirectX"
for
C++ Builder
...
|
TDx_Input_Library v2.00 Component Reference
|
|
[ TDIPropDWORD::PropHeader ]
[ next: Size ]
[ prev: ErrorValue ]
__published:
__property TDIPropHeader* PropHeader = { read=FGetPropHeader, write=FSetPropHeader, default=NULL };
TDIPROPDWORD::PROPHEADER
[ component property ]
- Description
The PropHeader property can be used to link the TDIPropDWORD to a TDIPropHeader component using the Object Inspector or equivalent runtime code, and is used to access data inside the DIPROPHEADER structure that exists inside a DIPROPDWORD structure in a structure-in-structure relationship.
Normally in DirectX, you must setup the entire DIPROPDWORD structure including it's DIPROPHEADER structure according to specific rules. Upon linking a TDIPropHeader component to a TDIPropDWORD, much of the work has already been performed, but you still need to setup both the TDIPropHeader::Obj and the TDIPropHeader::How properties.
For Example :-
void __fastcall Form1::Button1Click(TObject* Sender)
{
DIPropHeader1->How = DIPH_DEVICE;
DIPropHeader1->Obj = 0;
DIPropDWORD1->Data = 20;
DIPropDWORD1->PropHeader = DIPropHeader1;
Dx_InputDevice1->SetProperty( DIPROP_BUFFERSIZE, DIPropDWORD1 );
}
- See Also
- Top
If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.
|
|