MainFrm.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_MAINFRM_H__147283E8_5032_4C0A_9828_1CC59DECFD62__INCLUDED_)
  5. #define AFX_MAINFRM_H__147283E8_5032_4C0A_9828_1CC59DECFD62__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "SystemTray.h"
  10. #include "QuickPaste.h"
  11. #define KILL_DB_TIMER 1
  12. #define HIDE_ICON_TIMER 2
  13. #define REMOVE_OLD_ENTRIES_TIMER 3
  14. #define CHECK_FOR_UPDATE 4
  15. #define CLOSE_APP 5
  16. #define HIDE_ERROR_POPUP 6
  17. class CMainFrame : public CFrameWnd
  18. {
  19. public:
  20. CMainFrame();
  21. protected:
  22. DECLARE_DYNAMIC(CMainFrame)
  23. // Attributes
  24. public:
  25. // Operations
  26. public:
  27. BOOL ResetKillDBTimer();
  28. // Overrides
  29. // ClassWizard generated virtual function overrides
  30. //{{AFX_VIRTUAL(CMainFrame)
  31. public:
  32. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  33. // virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
  34. //}}AFX_VIRTUAL
  35. // Implementation
  36. public:
  37. virtual ~CMainFrame();
  38. #ifdef _DEBUG
  39. virtual void AssertValid() const;
  40. virtual void Dump(CDumpContext& dc) const;
  41. #endif
  42. //protected:
  43. CQuickPaste QuickPaste;
  44. CSystemTray m_TrayIcon;
  45. ULONG m_ulCopyGap;
  46. void DoFirstTenPositionsPaste(int nPos);
  47. // Generated message map functions
  48. protected:
  49. //{{AFX_MSG(CMainFrame)
  50. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  51. afx_msg void OnFirstOption();
  52. afx_msg void OnFirstExit();
  53. afx_msg void OnChangeCbChain(HWND hWndRemove, HWND hWndAfter);
  54. afx_msg void OnDrawClipboard();
  55. afx_msg void OnTimer(UINT nIDEvent);
  56. afx_msg void OnFirstShowquickpaste();
  57. afx_msg void OnFirstReconnecttoclipboardchain();
  58. afx_msg void OnUpdateFirstReconnecttoclipboardchain(CCmdUI* pCmdUI);
  59. //}}AFX_MSG
  60. afx_msg LRESULT OnHotKey(WPARAM wParam, LPARAM lParam);
  61. afx_msg LRESULT OnShowTrayIcon(WPARAM wParam, LPARAM lParam);
  62. // afx_msg LRESULT OnReconnectToCopyChain(WPARAM wParam, LPARAM lParam);
  63. // afx_msg LRESULT OnGetIsTopView(WPARAM wParam, LPARAM lParam);
  64. afx_msg LRESULT OnCopyProperties(WPARAM wParam, LPARAM lParam);
  65. afx_msg LRESULT OnShutDown(WPARAM wParam, LPARAM lParam);
  66. afx_msg LRESULT OnClipboardCopied(WPARAM wParam, LPARAM lParam);
  67. afx_msg LRESULT OnAddToDatabaseFromSocket(WPARAM wParam, LPARAM lParam);
  68. afx_msg LRESULT OnLoadFormats(WPARAM wParam, LPARAM lParam);
  69. afx_msg LRESULT OnErrorOnSendRecieve(WPARAM wParam, LPARAM lParam);
  70. DECLARE_MESSAGE_MAP()
  71. public:
  72. virtual BOOL PreTranslateMessage(MSG* pMsg);
  73. afx_msg void OnClose();
  74. };
  75. /////////////////////////////////////////////////////////////////////////////
  76. //{{AFX_INSERT_LOCATION}}
  77. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  78. #endif // !defined(AFX_MAINFRM_H__147283E8_5032_4C0A_9828_1CC59DECFD62__INCLUDED_)