Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Protected Member Functions | Private Attributes
PropDlg Class Reference

#include <PropDlg.h>

List of all members.

Public Types


Public Member Functions

 PropDlg (CWnd *pParent=NULL)
void SetTitle (const char *str)
void AddLine (const char *line)

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
afx_msg void OnSize (UINT nType, int cx, int cy)
virtual BOOL OnInitDialog ()

Private Attributes

CListBox m_list
CStringList m_strings
CString m_title

Detailed Description

Definition at line 7 of file PropDlg.h.

Member Enumeration Documentation

anonymous enum

Definition at line 15 of file PropDlg.h.

Constructor & Destructor Documentation

PropDlg::PropDlg ( CWnd *  pParent = NULL)

Definition at line 20 of file PropDlg.cpp.

       : CDialog(PropDlg::IDD, pParent)
              // NOTE: the ClassWizard will add member initialization here

Member Function Documentation

void PropDlg::AddLine ( const char *  line)

Definition at line 75 of file PropDlg.cpp.

       m_strings.AddTail( str );

Here is the caller graph for this function:

void PropDlg::DoDataExchange ( CDataExchange *  pDX) [protected, virtual]

Definition at line 29 of file PropDlg.cpp.

              // NOTE: the ClassWizard will add DDX and DDV calls here
BOOL PropDlg::OnInitDialog ( ) [protected, virtual]

Definition at line 55 of file PropDlg.cpp.

       if ( m_title.GetLength() > 0 )
              SetWindowText( m_title );
       CRect rect;
       GetClientRect( &rect );
       m_list.Create( WS_CHILD|WS_VISIBLE|WS_VSCROLL|LBS_NOTIFY, rect, this, 5000 );
       POSITION pos;
       // Iterate through the list in head-to-tail order.
       for( pos = m_strings.GetHeadPosition(); pos != NULL; )
              m_list.AddString( m_strings.GetNext( pos ) );
       return TRUE;  // return TRUE unless you set the focus to a control
                     // EXCEPTION: OCX Property Pages should return FALSE
void PropDlg::OnSize ( UINT  nType,
int  cx,
int  cy 
) [protected]

Definition at line 47 of file PropDlg.cpp.

       CDialog::OnSize(nType, cx, cy);
       if ( ::IsWindow( m_list.m_hWnd ) )
              m_list.SetWindowPos( &wndTop, 0, 0, cx, cy, SWP_NOZORDER );
void PropDlg::SetTitle ( const char *  str) [inline]

Definition at line 19 of file PropDlg.h.

{ m_title = str; }

Here is the caller graph for this function:

Member Data Documentation

CListBox PropDlg::m_list [private]

Definition at line 22 of file PropDlg.h.

CStringList PropDlg::m_strings [private]

Definition at line 23 of file PropDlg.h.

CString PropDlg::m_title [private]

Definition at line 24 of file PropDlg.h.

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