OWLNext 7.0
Borland's Object Windows Library for the modern age
|
#include <owl/resource.h>
Public Member Functions | |
TToolbarRes (HINSTANCE hInst, TResId id, TAutoDelete del=AutoDelete) | |
~TToolbarRes () | |
TBitmap & | GetBitmap () |
int | GetCount () const |
ushort * | GetIds () const |
int | GetWidth () const |
int | GetHeight () const |
Public Member Functions inherited from owl::TResource< TOOLBARTEMPLATE, RtToolbar > | |
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 TOOLBARTEMPLATE * () | |
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 Member Functions | |
TOOLBARTEMPLATE & | TBInfo () const |
Protected Attributes | |
TBitmap * | ToolbarBitmap |
bool | ShouldDelete |
Protected Attributes inherited from owl::TResource< TOOLBARTEMPLATE, RtToolbar > | |
HGLOBAL | MemHandle |
Handle of resource. | |
TOOLBARTEMPLATE * | MemPtr |
Pointer to locked resource. | |
Definition at line 85 of file resource.h.
owl::TToolbarRes::TToolbarRes | ( | HINSTANCE | hInst, |
TResId | id, | ||
TAutoDelete | del = AutoDelete ) |
Definition at line 173 of file resource.cpp.
References owl::AutoDelete, ShouldDelete, and ToolbarBitmap.
owl::TToolbarRes::~TToolbarRes | ( | ) |
Definition at line 188 of file resource.cpp.
References ShouldDelete, and ToolbarBitmap.
TBitmap & owl::TToolbarRes::GetBitmap | ( | ) |
Definition at line 207 of file resource.cpp.
References owl::TBitmap::GetHandle(), owl::TResource< TOOLBARTEMPLATE, RtToolbar >::IsOK(), PRECONDITION, and ToolbarBitmap.
int owl::TToolbarRes::GetCount | ( | ) | const |
Definition at line 217 of file resource.cpp.
References owl::TOOLBARTEMPLATE::count, owl::TResource< TOOLBARTEMPLATE, RtToolbar >::IsOK(), PRECONDITION, and TBInfo().
int owl::TToolbarRes::GetHeight | ( | ) | const |
Definition at line 244 of file resource.cpp.
References owl::TOOLBARTEMPLATE::height, owl::TResource< TOOLBARTEMPLATE, RtToolbar >::IsOK(), PRECONDITION, and TBInfo().
ushort * owl::TToolbarRes::GetIds | ( | ) | const |
Definition at line 226 of file resource.cpp.
References owl::TOOLBARTEMPLATE::ids, owl::TResource< TOOLBARTEMPLATE, RtToolbar >::IsOK(), PRECONDITION, and TBInfo().
int owl::TToolbarRes::GetWidth | ( | ) | const |
Definition at line 235 of file resource.cpp.
References owl::TResource< TOOLBARTEMPLATE, RtToolbar >::IsOK(), PRECONDITION, TBInfo(), and owl::TOOLBARTEMPLATE::width.
|
protected |
Definition at line 198 of file resource.cpp.
References CONST_CAST, owl::TResource< TOOLBARTEMPLATE, RtToolbar >::IsOK(), and PRECONDITION.
|
protected |
Definition at line 98 of file resource.h.
|
protected |
Definition at line 97 of file resource.h.