| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- // MainFrm.h : interface of the CMainFrame class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MAINFRM_H__147283E8_5032_4C0A_9828_1CC59DECFD62__INCLUDED_)
- #define AFX_MAINFRM_H__147283E8_5032_4C0A_9828_1CC59DECFD62__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "SystemTray.h"
- #include "QuickPaste.h"
- #include "ToolTipEx.h"
- #include "EditFrameWnd.h"
- #define CLOSE_WINDOW_TIMER 1
- #define HIDE_ICON_TIMER 2
- #define REMOVE_OLD_ENTRIES_TIMER 3
- #define CHECK_FOR_UPDATE 4
- #define CLOSE_APP 5
- #define STOP_MONITORING_KEYBOARD_TIMER 7
- #define STOP_LOOKING_FOR_KEYBOARD 8
- #define REMOVE_OLD_REMOTE_COPIES 9
- #define END_DITTO_BUFFER_CLIPBOARD_TIMER 10
- class CMainFrame : public CFrameWnd
- {
- public:
- CMainFrame();
- protected:
- DECLARE_DYNAMIC(CMainFrame)
- // Attributes
- public:
- // Operations
- public:
- BOOL ResetKillDBTimer();
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMainFrame)
- public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- // virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CMainFrame();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- CQuickPaste QuickPaste;
- CSystemTray m_TrayIcon;
- ULONG m_ulCopyGap;
- CString m_csKeyboardPaste;
- CToolTipEx *m_pTypingToolTip;
- CString csTypeToolTipTitle;
- CPoint m_ToolTipPoint;
- CAlphaBlend m_Transparency;
- void DoDittoCopyBufferPaste(int nCopyBuffer);
- void DoFirstTenPositionsPaste(int nPos);
- void StopLookingForKeystrokes(bool bInitAppVaribles);
- bool PasteQuickPasteEntry(CString csQuickPaste);
- bool SaveQuickPasteEntry(CString csQuickPaste, CClipList *pClipList);
- void ShowErrorMessage(CString csTitle, CString csMessage);
- bool CloseAllOpenDialogs();
- static void DeleteOldRemoteCopies(CString csDir);
- static UINT RemoteOldRemoteFilesThread(LPVOID pParam);
- void ShowEditWnd(CClipIDs &Ids);
- CEditFrameWnd *m_pEditFrameWnd;
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMainFrame)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnFirstOption();
- afx_msg void OnFirstExit();
- afx_msg void OnChangeCbChain(HWND hWndRemove, HWND hWndAfter);
- afx_msg void OnDrawClipboard();
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnFirstShowquickpaste();
- afx_msg void OnFirstToggleConnectCV();
- afx_msg void OnUpdateFirstToggleConnectCV(CCmdUI* pCmdUI);
- afx_msg void OnFirstHelp();
- //}}AFX_MSG
- afx_msg LRESULT OnHotKey(WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT OnShowTrayIcon(WPARAM wParam, LPARAM lParam);
- // afx_msg LRESULT OnGetIsTopView(WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT OnCopyProperties(WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT OnShutDown(WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT OnClipboardCopied(WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT OnAddToDatabaseFromSocket(WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT OnErrorOnSendRecieve(WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT OnFocusChanged(WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT OnCustomizeTrayMenu(WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT OnKeyBoardChanged(WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT OnEditWndClose(WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT OnSetConnected(WPARAM wParam, LPARAM lParam);
- DECLARE_MESSAGE_MAP()
- public:
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- afx_msg void OnClose();
- afx_msg void OnFirstImport();
- afx_msg void OnDestroy();
- afx_msg void OnFirstNewclip();
- };
- class CShowMainFrame
- {
- public:
- CShowMainFrame();
- ~CShowMainFrame();
- static bool m_bShowingMainFrame;
- bool m_bHideMainFrameOnExit;
- HWND m_hWnd;
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MAINFRM_H__147283E8_5032_4C0A_9828_1CC59DECFD62__INCLUDED_)
|