home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / general / docktool / editbar.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  1KB  |  58 lines

  1. // editbar.h : header file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "searchbx.h"
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CEditBar window
  17.  
  18. class CEditBar : public CToolBar
  19. {
  20. // Construction
  21. public:
  22.     BOOL m_bColor;
  23.     CSearchBox m_SearchBox;
  24.  
  25.     CEditBar();
  26.     BOOL Init(CWnd* pParentWnd, BOOL bColor, BOOL bToolTips);
  27.     BOOL SetColor(BOOL bColor);
  28.     BOOL SetHorizontal();
  29.     BOOL SetVertical();
  30.  
  31. // Attributes
  32. public:
  33.  
  34. // Operations
  35. public:
  36.  
  37. // Overrides
  38.     // ClassWizard generated virtual function overrides
  39.     //{{AFX_VIRTUAL(CEditBar)
  40.     //}}AFX_VIRTUAL
  41.  
  42. // Implementation
  43. public:
  44.     BOOL m_bVertical;
  45.  
  46.     virtual ~CEditBar();
  47. //  virtual CSize CalcFixedLayout(BOOL bStretch, BOOL bHorz);
  48.     virtual CSize CalcDynamicLayout(int nLength, DWORD dwMode);
  49.  
  50.     // Generated message map functions
  51. protected:
  52.     //{{AFX_MSG(CEditBar)
  53.     //}}AFX_MSG
  54.     DECLARE_MESSAGE_MAP()
  55. };
  56.  
  57. /////////////////////////////////////////////////////////////////////////////
  58.