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.

64 lines
1.9 KiB

  1. // Copyright (C) 1996-1997 Microsoft Corporation. All rights reserved.
  2. #if _MSC_VER > 1000
  3. #pragma once
  4. #endif
  5. #ifndef __CHISTORY_H__
  6. #define __CHISTORY_H__
  7. #define DEFAULT_HISTORY_COUNT 30
  8. #include "navui.h" // Clean up headers
  9. class CHistory : public INavUI
  10. {
  11. public:
  12. CHistory(PCSTR pszPastHistory);
  13. virtual ~CHistory();
  14. //---INavUI Interface Functions
  15. public:
  16. BOOL Create(HWND hwndParent);
  17. LRESULT OnCommand(HWND /*hwnd*/, UINT id, UINT uNotifiyCode, LPARAM /*lParam*/);
  18. void ResizeWindow();
  19. void SetFont(HFONT hfont) { m_hfont = hfont; }
  20. void SetPadding(int pad) { m_padding = pad; }
  21. void SetTabPos(int tabpos) { m_NavTabPos = tabpos; }
  22. void HideWindow(void);
  23. void ShowWindow(void);
  24. void SetDefaultFocus() {/*Not Implemented*/}
  25. bool ProcessMenuChar(HWND hwndParent, int ch) {/*NotImplemented*/ return false;}
  26. LRESULT OnNotify(HWND hwnd, WPARAM wParam, LPARAM lParam) {/*Not Implemented*/ return 1;}
  27. void OnDrawItem(UINT id, LPDRAWITEMSTRUCT pdis) {/*Not Implemented*/}
  28. void Seed(LPCSTR pszSeed) {/*Not Implemented*/}
  29. void OnVKListNotify(NMHDR* pNMHdr) {/*Not Implemented*/}
  30. //--- Other interface functions.
  31. void FillListBox(BOOL fReset = FALSE);
  32. //--- Member Variables.
  33. HWND m_hwndEditBox;
  34. HWND m_hwndListBox;
  35. HWND m_hwndDisplayButton;
  36. HWND m_hwndAddButton;
  37. BOOL m_fSelectionChange;
  38. HFONT m_hfont; // author-specified font to use for child windows
  39. int m_padding;
  40. int m_NavTabPos; // location of parent tabs
  41. CTable m_tblHistory; // URLs
  42. CStr m_cszPastHistory;
  43. BOOL m_fModified;
  44. // The window passed into create is not the actual parent window of the
  45. // controls. Instead, the controls are always parented to the Navigation window
  46. // which owns the tabs. For resizing, we need to have a pointer to the
  47. // tabctrl window. So, we save this pointer here.
  48. HWND m_hwndResizeToParent ;
  49. };
  50. #endif // __CHistory_H__