Source code of Windows XP (NT5)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//-------------------------------------------------------------------------
// File: ColumnMgrDlg.h
//
// Author : Kishnan Nedungadi
//
// created : 3/27/2000
//-------------------------------------------------------------------------
INT_PTR CALLBACK ColumnManagerDlgProc(HWND hDLG, UINT iMessage, WPARAM wParam, LPARAM lParam);
class CColumnItem { public: CColumnItem(LPCTSTR pcszName, LPCTSTR pcszPropertyName, bool bSelected=false); CColumnItem(const CColumnItem& colItem);
bool IsSelected() { return m_bSelected; } void SetSelected(bool bValue) { m_bSelected = bValue; } void SetSelected(BOOL bValue) { bValue? m_bSelected = true : m_bSelected = false; } void SetName(LPCTSTR pcszName) { m_bstrName = pcszName; } LPCTSTR GetName() { return m_bstrName; } void SetPropertyName(LPCTSTR pcszPropertyName) { m_bstrPropertyName = pcszPropertyName; } LPCTSTR GetPropertyName() { return m_bstrPropertyName; } CColumnItem& operator=(const CColumnItem& colItem);
protected: CComBSTR m_bstrName; CComBSTR m_bstrPropertyName; bool m_bSelected; };
class CColumnManagerDlg { public: CColumnManagerDlg(CSimpleArray<CColumnItem*> *pArrayColumns); ~CColumnManagerDlg(); INT_PTR CALLBACK ColumnManagerDlgProc(HWND hDlg, UINT iMessage, WPARAM wParam, LPARAM lParam); STDMETHODIMP InitializeDialog(); STDMETHODIMP PopulateColumnsList(); STDMETHODIMP AddColumnItemToList(CColumnItem* pszItem); STDMETHODIMP OnOK();
protected:
HWND m_hWnd; HWND m_hwndListView; CSimpleArray<CColumnItem*> *m_pArrayColumns; };
|