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