Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Public Attributes
CCustomFieldDlg Class Reference

#include <PageSetupDlg.h>

Collaboration diagram for CCustomFieldDlg:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { IDD = IDD_CUSTOM_FIELD }

Public Member Functions

 CCustomFieldDlg (const nsAString &str)
LRESULT OnInitDialog (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnOK (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnCancel (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)

Public Attributes

nsString m_field

Detailed Description

Definition at line 60 of file PageSetupDlg.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
IDD 

Definition at line 63 of file PageSetupDlg.h.


Constructor & Destructor Documentation

CCustomFieldDlg::CCustomFieldDlg ( const nsAString &  str) [inline]

Definition at line 73 of file PageSetupDlg.h.

                                          :
        m_field(str)
    {
    }

Member Function Documentation

LRESULT CCustomFieldDlg::OnCancel ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
) [inline]

Definition at line 95 of file PageSetupDlg.h.

    {
        EndDialog(IDCANCEL);
        return 0;
    }
LRESULT CCustomFieldDlg::OnInitDialog ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
) [inline]

Definition at line 78 of file PageSetupDlg.h.

    {
        USES_CONVERSION;
        SetDlgItemText(IDC_VALUE, W2CT(m_field.get()));
        return 0;
    }

Here is the call graph for this function:

LRESULT CCustomFieldDlg::OnOK ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
) [inline]

Definition at line 85 of file PageSetupDlg.h.

    {
        TCHAR szBuf[128];
        GetDlgItemText(IDC_VALUE, szBuf, sizeof(szBuf) / sizeof(szBuf[0]));
        USES_CONVERSION;
        m_field = T2CW(szBuf);
        EndDialog(IDOK);
        return 0;
    }

Member Data Documentation

Definition at line 71 of file PageSetupDlg.h.


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