OWLNext 6.32
Public Types | Public Member Functions | Protected Member Functions | Friends
owl::TModule Class Reference

#include <module.h>

Inheritance diagram for owl::TModule:
owl::TStreamableBase owl::TApplication owl::TCommCtrlDll owl::THtmlHelpDll owl::TMailer owl::TPrinterDriverLibrary owl::TRichEditModule owl::TThemeModule owl::TWinSockDll

List of all members.

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 TModuleFindResModule (TResId id, TResId type)
static TModuleNextModule (TModule *module=0)

Protected Member Functions

void SetHandle (THandle handle)

Friends

std::ostream & operator<< (std::ostream &os, const TModule &m)

Detailed Description

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.


Member Typedef Documentation

typedef HINSTANCE owl::TModule::THandle

TModule encapsulates an HINSTANCE.


The documentation for this class was generated from the following files: