CSpeakWindow

Back to Classes Page

Parent Class: CFormView

Resource ID: IDD_SPEAKWINDOW_FORM

This class represents a Form View associated with Speak Frame Window. For a description of all the menus and toolbar buttons for this window, click here.

Field Summary

Access Data Type Name
public bool m_bDirty
protected bool m_bFirstTime
public bool m_bNewSpeakWindow
public bool m_bSavedOnce
public CButton m_btnBackColor
public CButton m_btnFont
public CButton m_btnSend
public CEdit m_ctrlTo
public CRichEditCtrl m_ctrlTypedText
public CRichEditCtrl m_ctrlWholeText
protected HICON m_hFontButtonIcon
public int m_iWholeTextFontColor
public int m_iWholeTextFontSize
public CSpeakWindowFrame * m_pFrame
public CMessengerClientDoc * m_pParent
public CPreferencesData m_Preferences
public CMessengerClientView * m_pView
public CString m_strFileName
public CString m_strFrom
public CString m_strTo
public CString m_strTypedText
public CString m_strWholeText
protected CPoint m_ToolBarPosition
public LOGFONT m_WholeTextFont

Constructor Summary

protected:CSpeakWindow()

Destructor Summary

protected:~CSpeakWindow()

Method Summary

void AddTextToWholeText(CMessagePacket &msg)
protected:void AdjustFormControls()
protected:void DoSaving()
protected:void GetCurrentFont(CMessagePacket& msg)
protected:void InitCharFormat(CHARFORMAT &format)
protected:void OnBackcolor()
protected:void OnEditCopy()
protected:void OnEditCut()
protected:void OnEditDelete()
protected:void OnEditPaste()
protected:void OnEditSelectall()
protected:void OnFileBlockthisuser()
protected:void OnFileClose()
protected:void OnFileNew()
protected:void OnFileSave()
protected:void OnFileSaveas()
protected:void OnFileSend()
protected:void OnFont()
protected:void OnFormatColor()
protected:void OnFormatDefaultfontandcolor()
protected:void OnFormatFont()
protected:void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI)()
void OnInitialUpdate()
protected:void OnSend()
protected:void OnSize(UINT nType, int cx, int cy)
protected:void SetControlsBackColor(int iColor)
protected:void SetTextFont(LOGFONT& font, CString& strFontFace, CRichEditCtrl& control, int iFontColor, int iFontSize, int iHowMuchText)

Field Detail

m_bDirty
Initially set to false, this variable becomes true when any text changes in the Speak Dialog.

m_bFirstTime
Initially set to true, this variable becomes false when the Speak Dialog is resized for the first time.

m_bNewSpeakWindow
Initially set to false, this variable becomes true when the Speak Dialog gets some text.

m_bSavedOnce
Initially set to false, this variable becomes true when the Speak Dialog text gets saved in the file.

m_btnBackColor
Background variable for the "Color" pushbutton. Used to adjust the button's position.

m_btnFont
Background variable for the "Font" pushbutton. Used to adjust the button's position.

m_btnSend
Background variable for the "Send" pushbutton. Used to adjust the button's position.

m_ctrlTo
Background variable for the "To" edit box. Contains the name of the user whom this user is sending messages to.

m_ctrlTypedText
Background variable for the "Typed Text" rich edit box. Used to position the rich edit box and format the text within it.

m_ctrlWholeText
Background variable for the "Whole Text" rich edit box. Used to position the rich edit box and format the text within it.

m_hFontButtonIcon
Unused in the code. Redendent variable.

m_iWholeTextFontColor
Color of text in the Whole Text rich edit text box.

m_iWholeTextFontSize
Size of text in the Whole Text rich edit text box.

m_pFrame
Pointer to the Speak Window Frame object associated with this form.

m_pParent
Pointer to the Document object.

m_Preferences
Local copy of the Preferences object.

m_pView
Application's main view object pointer.

m_strFileName
Name of the file where the text is to be saved.

m_strFrom
Background variable for "From" text box. This variable will be populated by the current User Name and is unchangeable by user.

m_strTo
Background variable for "To" text box. This variable will be populated automatically by the User ID of the user whom this user is talking to in this Speak Window.

m_strTypedText
Background variable for "Typed Text" rich text box. It contains all the text typed by the user prior to pressing the "Send" button. It contains raw data and no formatting info.

m_strWholeText
Background variable for "Whole Text" rich text box. It contains all the text typed by both the From and To party users during the entire lifetime of this Speak Window. It contains raw data and no formatting info.

m_ToolBarPosition
Not used anywhere. Redundent variable.

m_WholeTextFont
Not used anywhere. Redundent variable.

Constructor Detail

CSpeakWindow()
Initializes various variables.

Destructor Detail

~CSpeakWindow()
Default destructor. Does nothing more.

Method Detail

AddTextToWholeText(CMessagePacket &msg)


AdjustFormControls()


DoSaving


GetCurrentFont(CMessagePacket& msg)


InitCharFormat(CHARFORMAT &format)


OnBackcolor


OnEditCopy()


OnEditCut()


OnEditDelete()


OnEditPaste()


OnEditSelectall()


OnFileBlockthisuser()


OnFileClose()


OnFileNew()


OnFileSave()


OnFileSaveas()


OnFileSend()


OnFont()


OnFormatColor()


OnFormatDefaultfontandcolor()


OnFormatFont()


OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI)


OnInitialUpdate()


OnSend()


OnSize(UINT nType, int cx, int cy)


SetControlsBackColor(int iColor)


SetTextFont(LOGFONT& font, CString& strFontFace, CRichEditCtrl& control, int iFontColor, int iFontSize, int iHowMuchText)


Back to Classes Page