|
OWLNext 7.0
Borland's Object Windows Library for the modern age
|
TResource simplifies access to a resource by encapsulating the find, load, lock and free steps for accessing a resource. More...
#include <owl/wsyscls.h>
Public Member Functions | |
| TResource (HINSTANCE hModule, TResId resId) | |
| Loads & locks the specified resource.. | |
| TResource (HINSTANCE hModule, TResId resid, LANGID langid) | |
| Loads & locks a resource of the type 'resType' from the module (hModule). | |
| ~TResource () | |
| Unlocks and frees the resource loaded earlier. | |
| bool | IsOK () const |
| Confirms whether resource was found. | |
| operator T* () | |
| Conversion operator to point to structure representing binary layout of the resource... | |
| DWORD | GetSize () const |
| Returns the size in bytes of the loaded resource. | |
Protected Attributes | |
| HGLOBAL | MemHandle |
| Handle of resource. | |
| T * | MemPtr |
| Pointer to locked resource. | |
TResource simplifies access to a resource by encapsulating the find, load, lock and free steps for accessing a resource.
| owl::TResource< T, resType >::TResource | ( | HINSTANCE | hModule, |
| TResId | resId ) |
Loads & locks the specified resource..
Definition at line 619 of file wsyscls.h.
References owl::TResource< T, resType >::MemHandle, and owl::TResource< T, resType >::MemPtr.
| owl::TResource< T, resType >::TResource | ( | HINSTANCE | hModule, |
| TResId | resId, | ||
| LANGID | lcid ) |
Loads & locks a resource of the type 'resType' from the module (hModule).
Accepts a LanguageID for localized resources.
Definition at line 640 of file wsyscls.h.
References owl::TResource< T, resType >::MemHandle, and owl::TResource< T, resType >::MemPtr.
| owl::TResource< T, resType >::~TResource | ( | ) |
| DWORD owl::TResource< T, resType >::GetSize | ( | ) | const |
Returns the size in bytes of the loaded resource.
Returns the size, in bytes, of the loaded resource.
Definition at line 700 of file wsyscls.h.
References PRECONDITION.
| bool owl::TResource< T, resType >::IsOK | ( | ) | const |
| owl::TResource< T, resType >::operator T* | ( | ) |
Conversion operator to point to structure representing binary layout of the resource...
Returns a pointer to the locked resource.
Definition at line 689 of file wsyscls.h.
References PRECONDITION.
|
protected |
|
protected |