Operator Console
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ModelessDialogThread Class Reference

a thread class for creating modeless dialogs which can operate without halting the main dialog More...

#include <ModelessDialogThread.h>

Inheritance diagram for ModelessDialogThread:
[legend]

Public Member Functions

 ModelessDialogThread ()
 
virtual ~ModelessDialogThread ()
 
void SetText (LPCTSTR text)
 
void SetTitle (LPCTSTR title)
 
void Show (bool show)
 
BOOL InitInstance ()
 
int ExitInstance ()
 
 ModelessDialogThread ()
 
virtual ~ModelessDialogThread ()
 
void SetText (LPCTSTR text)
 
void SetTitle (LPCTSTR title)
 
void Show (bool show)
 
BOOL InitInstance ()
 
int ExitInstance ()
 

Protected Member Functions

void OnModelessQuit (WPARAM wParam, LPARAM lParam)
 
void OnModelessQuit (WPARAM wParam, LPARAM lParam)
 

Protected Attributes

TextDlgm_dialog
 

Detailed Description

a thread class for creating modeless dialogs which can operate without halting the main dialog

Constructor & Destructor Documentation

ModelessDialogThread::ModelessDialogThread ( )

References m_dialog.

41 {
42  m_dialog = NULL;
43 }
TextDlg * m_dialog
Definition: ModelessDialogThread.h:58
ModelessDialogThread::~ModelessDialogThread ( )
virtual
46 {
47 }
ModelessDialogThread::ModelessDialogThread ( )
virtual ModelessDialogThread::~ModelessDialogThread ( )
virtual

Member Function Documentation

int ModelessDialogThread::ExitInstance ( )

References m_dialog.

65 {
66  if (m_dialog != NULL)
67  {
68  delete m_dialog;
69  }
70 
71  return CWinThread::ExitInstance();
72 }
TextDlg * m_dialog
Definition: ModelessDialogThread.h:58
int ModelessDialogThread::ExitInstance ( )
BOOL ModelessDialogThread::InitInstance ( )
BOOL ModelessDialogThread::InitInstance ( )

References m_dialog.

53 {
54 
55  CWinThread::InitInstance();
56 
57  m_dialog = new TextDlg;
58  m_pMainWnd = m_dialog;
59 
60  return TRUE;
61 }
TextDlg dialog.
Definition: TextDlg.h:27
TextDlg * m_dialog
Definition: ModelessDialogThread.h:58
void ModelessDialogThread::OnModelessQuit ( WPARAM  wParam,
LPARAM  lParam 
)
protected
void ModelessDialogThread::OnModelessQuit ( WPARAM  wParam,
LPARAM  lParam 
)
protected
101 {
102  PostQuitMessage(0);
103 }
void ModelessDialogThread::SetText ( LPCTSTR  text)
void ModelessDialogThread::SetText ( LPCTSTR  text)

References m_dialog, and TextDlg::SetText().

Referenced by COperatorConsoleApp::OnShowJSON().

92 {
93  if (m_dialog != NULL)
94  {
95  m_dialog->SetText(text);
96  }
97 }
TextDlg * m_dialog
Definition: ModelessDialogThread.h:58
void SetText(LPCTSTR text)
set the contents of the window to the string pointed to by 'text'
Definition: TextDlg.cpp:63

Here is the call graph for this function:

Here is the caller graph for this function:

void ModelessDialogThread::SetTitle ( LPCTSTR  title)
void ModelessDialogThread::SetTitle ( LPCTSTR  title)

References m_dialog, and TextDlg::SetTitle().

Referenced by COperatorConsoleApp::OnShowJSON().

84 {
85  if (m_dialog != NULL)
86  {
87  m_dialog->SetTitle(title);
88  }
89 }
void SetTitle(LPCTSTR title)
sets the window's title
Definition: TextDlg.cpp:78
TextDlg * m_dialog
Definition: ModelessDialogThread.h:58

Here is the call graph for this function:

Here is the caller graph for this function:

void ModelessDialogThread::Show ( bool  show)

References m_dialog, and TextDlg::Show().

Referenced by COperatorConsoleApp::OnShowJSON().

76 {
77  if (m_dialog != NULL)
78  {
79  m_dialog->Show(show);
80  }
81 }
void Show(bool show)
show or hide the window
Definition: TextDlg.cpp:70
TextDlg * m_dialog
Definition: ModelessDialogThread.h:58

Here is the call graph for this function:

Here is the caller graph for this function:

void ModelessDialogThread::Show ( bool  show)

Member Data Documentation

TextDlg * ModelessDialogThread::m_dialog
protected

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