D:/develop/v65/clients/outlook/install/output/export/funambol/clients/outlook/UI/src/LeftView.h

00001  /*
00002  * Copyright (C) 2007 Funambol, Inc.
00003  *
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License version 2 as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY, TITLE, NONINFRINGEMENT or FITNESS FOR A PARTICULAR
00011  * PURPOSE.  See the GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00016  * 02111-1307  USA
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: // create from serialization only
00042         CLeftView();
00043     virtual ~CLeftView();
00044 
00045 public:
00046         enum { IDD = IDD_FORM_LEFT };
00047 public:
00048         COutlookPluginDoc* GetDocument();
00049 public:
00050 
00051 // Overrides
00052         // ClassWizard generated virtual function overrides
00053         //{{AFX_VIRTUAL(CLeftView)
00054 
00055 protected:
00056         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
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; // offset for the selection mark image
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(); // called first time after construct
00081     virtual BOOL PreTranslateMessage(MSG* pMsg);
00082     virtual void PostNcDestroy( ){delete this;}
00083 
00084         //}}AFX_VIRTUAL
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 //{{AFX_INSERT_LOCATION}}
00102 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00103 
00106 #endif 

Generated on Fri Nov 9 12:21:26 2007 for Funambol Outlook Plug-in Library by  doxygen 1.5.2