[11] | 1 | // MainFrm.h : interface of the CMainFrame class
|
---|
| 2 | //
|
---|
| 3 | /////////////////////////////////////////////////////////////////////////////
|
---|
| 4 |
|
---|
| 5 | #if !defined(AFX_MAINFRM_H__A3BAD4AF_F5AE_11D1_8FE9_6CD504C1BC01__INCLUDED_)
|
---|
| 6 | #define AFX_MAINFRM_H__A3BAD4AF_F5AE_11D1_8FE9_6CD504C1BC01__INCLUDED_
|
---|
| 7 |
|
---|
| 8 | #if _MSC_VER >= 1000
|
---|
| 9 | #pragma once
|
---|
| 10 | #endif // _MSC_VER >= 1000
|
---|
| 11 |
|
---|
| 12 | #include "trayicon.h"
|
---|
| 13 |
|
---|
| 14 | class CMainFrame : public CMDIFrameWnd
|
---|
| 15 | {
|
---|
| 16 | DECLARE_DYNAMIC(CMainFrame)
|
---|
| 17 | public:
|
---|
| 18 | CMainFrame();
|
---|
| 19 |
|
---|
| 20 | // Attributes
|
---|
| 21 | public:
|
---|
| 22 |
|
---|
| 23 | // Operations
|
---|
| 24 | public:
|
---|
| 25 |
|
---|
| 26 | // Overrides
|
---|
| 27 | // ClassWizard generated virtual function overrides
|
---|
| 28 | //{{AFX_VIRTUAL(CMainFrame)
|
---|
| 29 | virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
|
---|
| 30 | //}}AFX_VIRTUAL
|
---|
| 31 |
|
---|
| 32 | // Implementation
|
---|
| 33 | public:
|
---|
| 34 | virtual ~CMainFrame();
|
---|
| 35 | #ifdef _DEBUG
|
---|
| 36 | virtual void AssertValid() const;
|
---|
| 37 | virtual void Dump(CDumpContext& dc) const;
|
---|
| 38 | #endif
|
---|
| 39 |
|
---|
| 40 | protected: // control bar embedded members
|
---|
| 41 | CStatusBar m_wndStatusBar;
|
---|
| 42 | CToolBar m_wndToolBar;
|
---|
| 43 |
|
---|
| 44 | CTrayIcon m_trayIcon; // my tray icon
|
---|
| 45 |
|
---|
| 46 | // Generated message map functions
|
---|
| 47 | protected:
|
---|
| 48 | afx_msg LRESULT OnTrayNotification(WPARAM wp, LPARAM lp);
|
---|
| 49 | //{{AFX_MSG(CMainFrame)
|
---|
| 50 | afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
---|
| 51 | afx_msg void OnOptionsConnections();
|
---|
| 52 | afx_msg void OnTrayMain();
|
---|
| 53 | afx_msg void OnTrayConnections();
|
---|
| 54 | afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
|
---|
| 55 | afx_msg void OnClose();
|
---|
| 56 | afx_msg void OnTrayExit();
|
---|
| 57 | afx_msg void OnSize(UINT nType, int cx, int cy);
|
---|
| 58 | afx_msg void OnOptionsRegistertypeLibrary();
|
---|
| 59 | //}}AFX_MSG
|
---|
| 60 | DECLARE_MESSAGE_MAP()
|
---|
| 61 | private:
|
---|
| 62 | BOOL m_bConfiguringConnections;
|
---|
| 63 | BOOL m_bTeminate;
|
---|
| 64 | };
|
---|
| 65 |
|
---|
| 66 | /////////////////////////////////////////////////////////////////////////////
|
---|
| 67 |
|
---|
| 68 | //{{AFX_INSERT_LOCATION}}
|
---|
| 69 | // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
---|
| 70 |
|
---|
| 71 | #endif // !defined(AFX_MAINFRM_H__A3BAD4AF_F5AE_11D1_8FE9_6CD504C1BC01__INCLUDED_)
|
---|