Back to index

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

#include <PropertyDlg.h>

Collaboration diagram for CPropertyDlg:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { IDD = IDD_PROPERTIES }

Public Member Functions

 CPropertyDlg ()
LRESULT OnInitDialog (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnOK (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnClose (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
HRESULT AddPage (CPPageDlg *pPage)

Public Attributes

CPPageDlgmPPage

Detailed Description

Definition at line 58 of file PropertyDlg.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
IDD 

Definition at line 61 of file PropertyDlg.h.


Constructor & Destructor Documentation

Definition at line 46 of file PropertyDlg.cpp.

                           :
    mPPage(NULL)
{
}

Member Function Documentation

Definition at line 51 of file PropertyDlg.cpp.

{
    mPPage = pPage;
    return S_OK;
}
LRESULT CPropertyDlg::OnClose ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
)

Definition at line 84 of file PropertyDlg.cpp.

{
    if (mPPage)
    {
        mPPage->DestroyWindow();
    }
    EndDialog(IDCLOSE);
    return 1;
}
LRESULT CPropertyDlg::OnInitDialog ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)

Definition at line 58 of file PropertyDlg.cpp.

{
    if (mPPage)
    {
        // Create property page over the marker
        RECT rc;
        ::GetWindowRect(GetDlgItem(IDC_PPAGE_MARKER), &rc);
        ScreenToClient(&rc);
        mPPage->Create(m_hWnd, rc);
        mPPage->SetWindowPos(HWND_TOP, &rc, SWP_SHOWWINDOW);
    }
    return 1;
}
LRESULT CPropertyDlg::OnOK ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
)

Definition at line 73 of file PropertyDlg.cpp.

{
    if (mPPage)
    {
        mPPage->DestroyWindow();
    }
    EndDialog(IDOK);
    return 1;
}

Member Data Documentation

Definition at line 63 of file PropertyDlg.h.


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