00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include "afxcmn.h"
00020 #if !defined(AFX_OPVIEW_H__FA98B713_D0B7_11D3_BC39_00C04F602FEE__INCLUDED_)
00021 #define AFX_OPVIEW_H__FA98B713_D0B7_11D3_BC39_00C04F602FEE__INCLUDED_
00022
00027 #if _MSC_VER > 1000
00028 #pragma once
00029 #endif // _MSC_VER > 1000
00030
00031 #include "OutlookPluginDoc.h"
00032 #include "AnimatedIcon.h"
00033
00034
00038 class CLeftView : public CFormView
00039 {
00040 DECLARE_DYNCREATE(CLeftView)
00041 protected:
00042 CLeftView();
00043 virtual ~CLeftView();
00044
00045 public:
00046 enum { IDD = IDD_FORM_LEFT };
00047 public:
00048 COutlookPluginDoc* GetDocument();
00049 public:
00050
00051
00052
00053
00054
00055 protected:
00056 virtual void DoDataExchange(CDataExchange* pDX);
00057
00058 DECLARE_MESSAGE_MAP()
00059
00060 protected:
00061 void populateList();
00062 virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
00063 CWnd* m_target;
00064 CBrush brush;
00065 int previousSelectedItem;
00066 int currentSelectedItem;
00067 CImageList imgList;
00068 int yOffset;
00069
00070 void setBkgImage(int itemNumber);
00071
00072 public:
00073 CListCtrl lstConfig;
00074 void SetTarget(CWnd* m_cwnd);
00075 void selectItem(const int index);
00076
00077 afx_msg void OnCancel() {};
00078 afx_msg void OnOK() {};
00079 protected:
00080 virtual void OnInitialUpdate();
00081 virtual BOOL PreTranslateMessage(MSG* pMsg);
00082 virtual void PostNcDestroy( ){delete this;}
00083
00084
00085
00086 afx_msg void OnNcPaint();
00087 afx_msg HBRUSH OnCtlColor( CDC*, CWnd*, UINT );
00088 afx_msg void OnLvnItemchangedLeftList(NMHDR *pNMHDR, LRESULT *pResult);
00089 public:
00090 afx_msg void OnLvnGetdispinfoLeftList(NMHDR *pNMHDR, LRESULT *pResult);
00091 afx_msg void OnLvnItemchangingLeftList(NMHDR *pNMHDR, LRESULT *pResult);
00092 };
00093
00094 #ifndef _DEBUG
00095 inline COutlookPluginDoc* CLeftView::GetDocument()
00096 { return (COutlookPluginDoc*)m_pDocument; }
00097 #endif
00098
00100
00101
00102
00103
00106 #endif