scbarg.h

00001 
00002 //
00003 // CSizingControlBarG           Version 2.43
00004 //
00005 // Created: Jan 24, 1998        Last Modified: August 03, 2000
00006 //
00007 // See the official site at www.datamekanix.com for documentation and
00008 // the latest news.
00009 //
00011 // Copyright (C) 1998-2000 by Cristi Posea. All rights reserved.
00012 //
00013 // This code is free for personal and commercial use, providing this 
00014 // notice remains intact in the source files and all eventual changes are
00015 // clearly marked with comments.
00016 //
00017 // You must obtain the author's consent before you can include this code
00018 // in a software library.
00019 //
00020 // No warrantee of any kind, express or implied, is included with this
00021 // software; use at your own risk, responsibility for damages (if any) to
00022 // anyone resulting from the use of this software rests entirely with the
00023 // user.
00024 //
00025 // Send bug reports, bug fixes, enhancements, requests, flames, etc. to
00026 // [email protected] or post them at the message board at the site.
00028 
00029 #if !defined(__SCBARG_H__)
00030 #define __SCBARG_H__
00031 
00032 #if _MSC_VER >= 1000
00033 #pragma once
00034 #endif // _MSC_VER >= 1000
00035 
00036 #include "sizecbar.h"
00037 
00039 // CSCBButton (button info) helper class
00040 
00041 class CSCBButton
00042 {
00043 public:
00044     CSCBButton();
00045 
00046     void Move(CPoint ptTo) {ptOrg = ptTo; };
00047     CRect GetRect() { return CRect(ptOrg, CSize(11, 11)); };
00048     void Paint(CDC* pDC);
00049 
00050     BOOL    bPushed;
00051     BOOL    bRaised;
00052 
00053 protected:
00054     CPoint  ptOrg;
00055 };
00056 
00058 // CSizingControlBar control bar
00059 
00060 #ifndef baseCSizingControlBarG
00061 #define baseCSizingControlBarG CSizingControlBar
00062 #endif
00063 
00064 class CSizingControlBarG : public baseCSizingControlBarG
00065 {
00066     DECLARE_DYNAMIC(CSizingControlBarG);
00067 
00068 // Construction
00069 public:
00070     CSizingControlBarG();
00071 
00072 // Attributes
00073 public:
00074     virtual BOOL HasGripper() const;
00075 
00076 // Operations
00077 public:
00078 
00079 // Overridables
00080     virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler);
00081 
00082 // Overrides
00083 public:
00084     // ClassWizard generated virtual function overrides
00085     //{{AFX_VIRTUAL(CSizingControlBarG)
00086     //}}AFX_VIRTUAL
00087 
00088 // Implementation
00089 public:
00090     virtual ~CSizingControlBarG();
00091     
00092 protected:
00093     // implementation helpers
00094     virtual void NcPaintGripper(CDC* pDC, CRect rcClient);
00095     virtual void NcCalcClient(LPRECT pRc, UINT nDockBarID);
00096 
00097 protected:
00098     int     m_cyGripper;
00099 
00100     CSCBButton m_biHide;
00101 
00102 // Generated message map functions
00103 protected:
00104     //{{AFX_MSG(CSizingControlBarG)
00105     afx_msg LRESULT OnNcHitTest(CPoint point);
00106     afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point);
00107     //}}AFX_MSG
00108 
00109     DECLARE_MESSAGE_MAP()
00110 };
00111 
00112 #endif // !defined(__SCBARG_H__)
00113 

Generated on Tue Dec 13 14:47:57 2005 for guliverkli by  doxygen 1.4.5