D:/develop/v65/clients/outlook/install/output/export/funambol/clients/outlook/UI/src/Splitter.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 #if !defined(AFX_Splitter_H__61D2F7E7_7AAA_11D1_9F4C_008029E98A75__INCLUDED_)
00020 #define AFX_Splitter_H__61D2F7E7_7AAA_11D1_9F4C_008029E98A75__INCLUDED_
00021 
00022 #if _MSC_VER >= 1000
00023 #pragma once
00024 #endif 
00025 
00026 
00027 class CSplitter : public CSplitterWnd
00028 {
00029 // Construction
00030 public:
00031         CSplitter();
00032 
00033 private:
00034     BOOL m_bBarLocked;
00035     
00036 public:
00037     BOOL bSplitterVisible;
00038     BOOL IsBarLocked(){return m_bBarLocked;}
00039     void LockBar(BOOL bState=TRUE){m_bBarLocked=bState;}
00040     BOOL ReplaceView(int row, int col,CRuntimeClass * pViewClass,SIZE size);
00041 
00042 // Overrides
00043         // ClassWizard generated virtual function overrides
00044         //{{AFX_VIRTUAL(CSplitter)
00045         //}}AFX_VIRTUAL
00046 
00047 public:
00048         virtual ~CSplitter();
00049 
00050 protected:
00051         //{{AFX_MSG(CSplitter)
00052    afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00053    afx_msg void OnMouseMove(UINT nFlags, CPoint point);
00054    afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
00055     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00056     afx_msg void OnPaint();
00057 
00058     virtual void OnDrawSplitter( CDC* pDC, ESplitType nType,  const CRect& rect );
00059 
00060         //}}AFX_MSG
00061     DECLARE_MESSAGE_MAP()
00062 };
00063 
00065 
00066 //{{AFX_INSERT_LOCATION}}
00067 
00068 #endif // !defined(AFX_Splitter_H__61D2F7E7_7AAA_11D1_9F4C_008029E98A75__INCLUDED_)

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