CListPane

Back to Classes Page

Parent Class: CFormView

Resource ID: IDD_LISTPANE_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 upper pane is represented by this class.

Field Summary

Access Data Type Name
public bool m_bFirstTime
public CListCtrl m_lstMsgs
public CTextPane * m_pTextButtonsPane

Constructor Summary

protected:CListPane()

Destructor Summary

protected:~CListPane()

Method Summary

void AdjustFormControls()
void CallDoubleClickMessagesList()
CMessengerClientView * GetViewPtr()
protected:void OnClickMessagesList(NMHDR* pNMHDR, LRESULT* pResult)
protected:void OnDblclkMessagesList(NMHDR* pNMHDR, LRESULT* pResult)
void OnInitialUpdate()
protected:void OnSize(UINT nType, int cx, int cy)
void UpdateTextButtonsPane()

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_lstMsgs
Background variable for the List Control provided on this pane. Contains the list of all offline messages received at login.

m_pTextButtonsPane
Pointer to the Text Pane object. It needs this pointer to change the contents of corresponding Text Pane object in Frame window. How this is done is explained in OnClickMessagesList() method.

Constructor Detail

CListPane()
Sets the variable m_bFirstTime to true.

Destructor Detail

~CListPane()
Default destructor. Does nothing more.

Method Detail

AdjustFormControls()


CallDoubleClickMessagesList()


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


OnClickMessagesList(NMHDR* pNMHDR, LRESULT* pResult)


OnDblclkMessagesList(NMHDR* pNMHDR, LRESULT* pResult)


OnInitialUpdate()
Creates 3 columns in the message list.


OnSize(UINT nType, int cx, int cy)


UpdateTextButtonsPane()


Back to Classes Page