#ifndef TDXFileLoadResourceH #define TDXFileLoadResourceH // ========================================================================== // File: TDXFileLoadResource.H // Authors: BCB_Code_Generator v2.00, // Darren Dwyer (source code, documentation, demos, website), // Hugh Edwards (documentation, icons) // Description: This file defines the TDXFileLoadResource Component // // "TDx9_XFile_Library v1.00" // (c) 2005 BCB-Tools.com Pty. Ltd., Sydney, Australia. // All Rights Reserved. // // Refer to the 'Licence.Txt' file for licencing & copyright information. // ========================================================================== // -------------------------------------------------------------------------- #include "TDx_Library_Defns.H" #include "TDx_Library_Functions.H" // -------------------------------------------------------------------------- #include "TDx9_XFile_Library_Defns.H" #include "TDx9_XFile_Library_Functions.H" // -------------------------------------------------------------------------- // ========================================================================== // Class: TDXFileLoadResource // Description: The TDXFileLoadResource object is used to ... // ========================================================================== #if (__BORLANDC__ >= 0x0530) // BCB Version 3 + class PACKAGE TDXFileLoadResource : public TComponent { // -------------------------------------------------------------------------- #else // BCB Version 1 class TDXFileLoadResource : public TComponent { #endif // ========================================================================== __published: // ========================================================================== // ---------------------------------------------------------------------- // Property: Name // Description: ... // ---------------------------------------------------------------------- __property AnsiString Name = { read=FGetName, write=FSetName, nodefault }; // ---------------------------------------------------------------------- // Property: Type // Description: ... // ---------------------------------------------------------------------- __property AnsiString Type = { read=FGetType, write=FSetType, nodefault }; // ---------------------------------------------------------------------- // Event: OnError() // Description: The OnError event is called when an error occurs in the // TDXFileLoadResource component. // ---------------------------------------------------------------------- __property TDx_Error OnError = {read=FOnError, write=FOnError, nodefault}; // ========================================================================== public: // ========================================================================== // ---------------------------------------------------------------------- // Property: ErrorValue // Description: The ErrorValue property contains the last error value // returned from a call to a TDXFileLoadResource method or // fget/fset. eg. or DDERR_SURFACELOST or TDX_ERROR // ---------------------------------------------------------------------- __property HRESULT ErrorValue = { read=FGetErrorValue, write=FSetErrorValue, nodefault }; // ---------------------------------------------------------------------- // Property: Module // Description: ... // ---------------------------------------------------------------------- __property HMODULE Module = { read=FGetModule, write=FSetModule, nodefault }; // ---------------------------------------------------------------------- // Property: Size // Description: The Size property contains the size in bytes of the // internal _DXFILELOADRESOURCE structure. // ---------------------------------------------------------------------- __property dword Size = { read=FGetSize, write=FSetSize, nodefault }; // ---------------------------------------------------------------------- // Method: Clear() // Description: The Clear() method can be used to clear the contents of // the TDXFileLoadResource's internal DXFILELOADRESOURCE // structure. // Note: if you have manually linked a structure member to a // chunk of memory, make sure you release this memory before // calling Clear(). // ---------------------------------------------------------------------- virtual void __fastcall Clear(); // ---------------------------------------------------------------------- // Constructor() and Destructor() // ---------------------------------------------------------------------- __fastcall TDXFileLoadResource(TComponent* Owner); virtual __fastcall ~TDXFileLoadResource(); // ---------------------------------------------------------------------- // Internal Structure Access // ---------------------------------------------------------------------- __property DXFILELOADRESOURCE* Internal_DXFILELOADRESOURCE_Ptr = { read=FGetInternal_DXFILELOADRESOURCE_Ptr, nodefault }; void __fastcall Internal_DXFILELOADRESOURCE_Update(); // ========================================================================== protected: // ========================================================================== // ---------------------------------------------------------------------- // Property Access Methods // ---------------------------------------------------------------------- HRESULT __fastcall FGetErrorValue(); void __fastcall FSetErrorValue( HRESULT pErrorValue ); HMODULE __fastcall FGetModule(); void __fastcall FSetModule( HMODULE pModule ); AnsiString __fastcall FGetName(); void __fastcall FSetName( AnsiString pName ); dword __fastcall FGetSize(); void __fastcall FSetSize( dword pSize ); AnsiString __fastcall FGetType(); void __fastcall FSetType( AnsiString pType ); // ========================================================================== private: // ========================================================================== // ---------------------------------------------------------------------- // Internal Structure Access // ---------------------------------------------------------------------- DXFILELOADRESOURCE* __fastcall FGetInternal_DXFILELOADRESOURCE_Ptr(); void __fastcall FSetInternal_DXFILELOADRESOURCE( DXFILELOADRESOURCE* pDXFILELOADRESOURCE ); // ---------------------------------------------------------------------- // Property Variables // ---------------------------------------------------------------------- HRESULT fErrorValue; AnsiString fName; dword fSize; AnsiString fType; // ---------------------------------------------------------------------- // Structure Variables // ---------------------------------------------------------------------- DXFILELOADRESOURCE fDXFILELOADRESOURCE; // ---------------------------------------------------------------------- // Event Variables // ---------------------------------------------------------------------- TDx_Error FOnError; }; // -------------------------------------------------------------------------- #endif // --------------------------------------------------------------------------