CTextPane

Back to Classes Page

Parent Class: CFormView

Resource ID: IDD_TEXTPANE_FORM

This form is one of the 2 panes contained in Offline Messages Window. An object of this class is created within the Offline Messages Frame Window.
In the following figure, the lower pane is represented by this class.

Field Summary

Access Data Type Name
public bool m_bFirstTime
public CButton m_btnDelete
public CButton m_btnReply
public CRichEditCtrl m_ctrlMessageBody
public COfflineMessagesFrameWnd * m_pFrame
public CListPane * m_pMsgsListPane
public CString m_strMessageBody

Constructor Summary

protected:CTextPane()

Destructor Summary

protected:~CTextPane()

Method Summary

protected:void AdjustFormControls()
CMessengerClientView * GetViewPtr()
protected:void OnDelete()
void OnFileDelete()
void OnFileReply()
protected:void OnReply()
protected:void OnSize(UINT nType, int cx, int cy)

Field Detail

m_bFirstTime
true on startup. Indicates whether the pane has been resized at least once (false) or being shown for the first time (true). Used by AdjustFormControls() method.

m_btnDelete
Background variable for the Delete button provided on this pane. Used for enabling/disabling the Delete button.

m_btnReply
Background variable for the Reply button provided on this pane. Used for enabling/disabling the Delete button.

m_ctrlMessageBody
Control associated with Message Body Text Box on this pane. Used in positioning and sizing of the text box.

m_pFrame
Pointer to the Offline Messages Frame which contains an object of this pane.

m_pMsgsListPane
Pointer to the List pane object which is contained in the same Offline Messages Frame as this pane.

m_strMessageBody
The entire text of the message contained in Text Box inside this pane.

Constructor Detail

CTextPane()
Sets the variable m_bFirstTime to true.

Destructor Detail

~CTextPane()
Default destructor. Does nothing more.

Method Detail

AdjustFormControls()


GetViewPtr()
Obtains a pointer to the application's main View object.


OnDelete()


OnFileDelete()
It's a public interface for OnDelete() method.


OnFileReply()
It's a public interface for OnReply() method.


OnReply()


OnSize(UINT nType, int cx, int cy)


Back to Classes Page