OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TDialogRes Class Reference

#include <owl/resource.h>

Public Types

enum  TDlgResText { drtMenuName , drtClassName , drtCaption }
 Enumeration of various strings stored with a dialog resource. More...
 

Public Member Functions

 TDialogRes (HINSTANCE hInstance, TResId id)
 
 TDialogRes (HINSTANCE hInstance, TResId id, LANGID langid)
 
 ~TDialogRes ()
 
bool IsOK () const
 
bool IsDialogEx () const
 
DLGTEMPLATEEXGetTemplateEx () const
 
DLGTEMPLATEGetTemplate () const
 
DWORD GetSize () const
 
void GetRect (TRect &rect) const
 
int GetText (TCHAR *buffer, int size, TDlgResText which=drtCaption) const
 

Protected Attributes

TResource< DLGTEMPLATE, static_cast< int >(RtDialog)> * OldResource
 
TResource< DLGTEMPLATEEX, static_cast< int >(RtNewDialog)> * NewResource
 

Detailed Description

Definition at line 122 of file resource.h.

Member Enumeration Documentation

◆ TDlgResText

Enumeration of various strings stored with a dialog resource.

Enumerator
drtMenuName 

String of menu resource used by dialog.

drtClassName 

Class name of dialog.

drtCaption 

Caption of dialog.

Definition at line 146 of file resource.h.

Constructor & Destructor Documentation

◆ TDialogRes() [1/2]

owl::TDialogRes::TDialogRes ( HINSTANCE hInstance,
TResId id )

Definition at line 30 of file resource.cpp.

References NewResource, and OldResource.

◆ TDialogRes() [2/2]

owl::TDialogRes::TDialogRes ( HINSTANCE hInstance,
TResId id,
LANGID langid )

Definition at line 47 of file resource.cpp.

References NewResource, and OldResource.

◆ ~TDialogRes()

owl::TDialogRes::~TDialogRes ( )

Definition at line 59 of file resource.cpp.

References NewResource, and OldResource.

Member Function Documentation

◆ GetRect()

void owl::TDialogRes::GetRect ( TRect & rect) const

Definition at line 113 of file resource.cpp.

References GetTemplate(), GetTemplateEx(), and IsDialogEx().

◆ GetSize()

DWORD owl::TDialogRes::GetSize ( ) const

◆ GetTemplate()

DLGTEMPLATE * owl::TDialogRes::GetTemplate ( ) const

Definition at line 96 of file resource.cpp.

References IsDialogEx(), OldResource, and PRECONDITION.

◆ GetTemplateEx()

DLGTEMPLATEEX * owl::TDialogRes::GetTemplateEx ( ) const

Definition at line 89 of file resource.cpp.

References IsDialogEx(), NewResource, and PRECONDITION.

◆ GetText()

int owl::TDialogRes::GetText ( TCHAR * buffer,
int size,
TDlgResText which = drtCaption ) const

Definition at line 131 of file resource.cpp.

References drtCaption, drtClassName, drtMenuName, GetTemplate(), and IsDialogEx().

◆ IsDialogEx()

bool owl::TDialogRes::IsDialogEx ( ) const

◆ IsOK()

bool owl::TDialogRes::IsOK ( ) const

Definition at line 70 of file resource.cpp.

References owl::TResource< T, resType >::IsOK(), NewResource, and OldResource.

Member Data Documentation

◆ NewResource

TResource<DLGTEMPLATEEX, static_cast<int>(RtNewDialog)>* owl::TDialogRes::NewResource
protected

Definition at line 160 of file resource.h.

◆ OldResource

TResource<DLGTEMPLATE, static_cast<int>(RtDialog)>* owl::TDialogRes::OldResource
protected

Definition at line 159 of file resource.h.


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