|
OWLNext 6.32
|
#include <module.h>
Public Types | |
| typedef HINSTANCE | THandle |
Public Member Functions | |
| TModule (const tstring &name, bool shouldLoad=true, bool mustLoad=true, bool addToList=true) | |
| TModule (const tstring &name, THandle handle, bool addToList=true) | |
| TModule (const tstring &name, THandle handle, const tstring &cmdLine, bool addToList=true) | |
| virtual | ~TModule () |
| void | InitModule (THandle handle, const tstring &cmdLine) |
| virtual int | Error (TXBase &x, uint captionResId, uint promptResId=0) |
Get & set members. Use these instead of directly accessing members | |
| LPCTSTR | GetName () const |
| void | SetName (const tstring &name) |
| THandle | GetHandle () const |
| operator THandle () const | |
| bool | operator== (const TModule &m) const |
| bool | IsLoaded () const |
Windows HINSTANCE/HMODULE related API functions encapsulated | |
| int | GetModuleFileName (TCHAR *buff, int maxChars) const |
| tstring | GetModuleFileName () const |
| FARPROC | GetProcAddress (TNarrowResId) const |
| HRSRC | FindResource (TResId id, TResId type) const |
| HRSRC | FindResourceEx (TResId id, TResId type, TLangId langId=LangNeutral) const |
| HGLOBAL | LoadResource (HRSRC hRsrc) const |
| uint32 | SizeofResource (HRSRC hRsrc) const |
| int | LoadString (uint id, TCHAR *buf, int maxChars) const |
| tstring | LoadString (uint id) const |
| HBITMAP | LoadBitmap (TResId id) const |
| bool | GetClassInfo (TResId name, WNDCLASS *wndclass) const |
| HACCEL | LoadAccelerators (TResId id) const |
| HMENU | LoadMenu (TResId id) const |
| HCURSOR | LoadCursor (TResId id) const |
| HICON | LoadIcon (TResId name) const |
| HICON | CopyIcon (HICON hIcon) const |
Static Public Member Functions | |
Global search for resources | |
| static TModule * | FindResModule (TResId id, TResId type) |
| static TModule * | NextModule (TModule *module=0) |
Protected Member Functions | |
| void | SetHandle (THandle handle) |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const TModule &m) |
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object-oriented stand-in for the library (DLL) module. TModule defines behavior shared by both library and application modules. ObjectWindows applications construct an instance of TApplication, derived from TModule. TModule's constructors manage loading and freeing of external DLLs, and the member functions provide support for default error handling.
| typedef HINSTANCE owl::TModule::THandle |
TModule encapsulates an HINSTANCE.
1.7.4