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

TextDlg dialog. More...

#include <TextDlg.h>

Inheritance diagram for TextDlg:
[legend]

Public Types

enum  { IDD = IDD_TEXTDIALOG }
 
enum  { IDD = IDD_TEXTDIALOG }
 

Public Member Functions

 TextDlg (CWnd *pParent=NULL)
 standard constructor More...
 
virtual ~TextDlg ()
 
void SetText (LPCTSTR text)
 set the contents of the window to the string pointed to by 'text' More...
 
void SetTitle (LPCTSTR title)
 sets the window's title More...
 
void Show (bool show)
 show or hide the window More...
 
afx_msg void OnClose ()
 
 TextDlg (CWnd *pParent=NULL)
 standard constructor More...
 
virtual ~TextDlg ()
 
void SetText (LPCTSTR text)
 set the contents of the window to the string pointed to by 'text' More...
 
void SetTitle (LPCTSTR title)
 sets the window's title More...
 
void Show (bool show)
 show or hide the window More...
 
afx_msg void OnClose ()
 

Public Attributes

CEdit c_text
 

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
 for DDX/DDV support More...
 
virtual void DoDataExchange (CDataExchange *pDX)
 for DDX/DDV support More...
 

Detailed Description

TextDlg dialog.

Member Enumeration Documentation

anonymous enum
Enumerator
IDD 
40 { IDD = IDD_TEXTDIALOG };
#define IDD_TEXTDIALOG
Definition: resource.h:31
Definition: TextDlg.h:40
anonymous enum
Enumerator
IDD 
40 { IDD = IDD_TEXTDIALOG };
#define IDD_TEXTDIALOG
Definition: resource.h:31
Definition: TextDlg.h:40

Constructor & Destructor Documentation

TextDlg::TextDlg ( CWnd *  pParent = NULL)

standard constructor

References IDD.

33  : CDialogEx(TextDlg::IDD, pParent)
34 {
35  Create(TextDlg::IDD);
36 }
Definition: TextDlg.h:40
TextDlg::~TextDlg ( )
virtual
39 {
40  DestroyWindow();
41 }
TextDlg::TextDlg ( CWnd *  pParent = NULL)

standard constructor

virtual TextDlg::~TextDlg ( )
virtual

Member Function Documentation

void TextDlg::DoDataExchange ( CDataExchange *  pDX)
protectedvirtual

for DDX/DDV support

References c_text, and IDC_TEXT.

44 {
45  CDialogEx::DoDataExchange(pDX);
46  DDX_Control(pDX, IDC_TEXT, c_text);
47 }
#define IDC_TEXT
Definition: resource.h:68
CEdit c_text
Definition: TextDlg.h:48
virtual void TextDlg::DoDataExchange ( CDataExchange *  pDX)
protectedvirtual

for DDX/DDV support

void TextDlg::OnClose ( )
59 {
60  ShowWindow(false); // if the user clicked on the Cloe button, just hide the window rather than destroying it
61 }
afx_msg void TextDlg::OnClose ( )
void TextDlg::SetText ( LPCTSTR  text)

set the contents of the window to the string pointed to by 'text'

References c_text.

Referenced by ModelessDialogThread::SetText().

64 {
65  c_text.SetSel(0, -1); // select all the text
66  c_text.ReplaceSel(text); // replace selection
67 }
CEdit c_text
Definition: TextDlg.h:48

Here is the caller graph for this function:

void TextDlg::SetText ( LPCTSTR  text)

set the contents of the window to the string pointed to by 'text'

void TextDlg::SetTitle ( LPCTSTR  title)

sets the window's title

Referenced by ModelessDialogThread::SetTitle().

79 {
80  SetWindowText(title);
81 }

Here is the caller graph for this function:

void TextDlg::SetTitle ( LPCTSTR  title)

sets the window's title

void TextDlg::Show ( bool  show)

show or hide the window

Referenced by ModelessDialogThread::Show().

71 {
72  ShowWindow(show ? SW_SHOW : SW_HIDE);
73 
74  if (show)
75  BringWindowToTop();
76 }

Here is the caller graph for this function:

void TextDlg::Show ( bool  show)

show or hide the window

Member Data Documentation

CEdit TextDlg::c_text

Referenced by DoDataExchange(), and SetText().


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