Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
885 B

  1. #ifndef __TABCTRL_H__
  2. #define __TABCTRL_H__
  3. ///////////////////////////////////////////////////////////
  4. //
  5. //
  6. // tabctrl.h - CTabControl controls encapsulates the system
  7. // tab control.
  8. //
  9. //
  10. // Copyright (C) 1996-1997 Microsoft Corporation. All rights reserved.
  11. #include "htmlhelp.h"
  12. #include "secwin.h"
  13. class CTabControl
  14. {
  15. public:
  16. // Constructor
  17. CTabControl(HWND hwndParent, int tabpos, CHHWinType* phh);
  18. // Destructor
  19. ~CTabControl();
  20. // Access
  21. public:
  22. HWND hWnd() const
  23. { return m_hWnd; }
  24. // Operations
  25. public:
  26. void ResizeWindow() ;
  27. int MaxTabs() {return m_cTabs; }
  28. // Internal Helper Functions
  29. protected:
  30. void CalcSize(RECT* prect) ;
  31. // Member variables.
  32. protected:
  33. HWND m_hWnd;
  34. HWND m_hWndParent ;
  35. PCWSTR m_apTabText[HH_MAX_TABS + 1];
  36. CHHWinType* m_phh;
  37. int m_cTabs; // tabs in use
  38. };
  39. #endif