|
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__C7AB15CA_2F5E_4883_BCBF_445144F29E9E__INCLUDED_)
#define AFX_MAINFRM_H__C7AB15CA_2F5E_4883_BCBF_445144F29E9E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "mytrayicon.h"
#include "CapITDoc.h"
class CMainFrame : public CFrameWnd
{
//protected: // create from serialization only
public:
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
CCapITDoc* GetDocument();
// Attributes
public:
int m_iRedCode;
int m_iGreenCode;
int m_iBlueCode;
int m_iPosX;
int m_iPosY;
BOOL m_bShowCodes;
BOOL m_bShowPosition;
BOOL g_mbImageCaptured;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
CMyTrayIcon m_trayIcon; // my tray icon
CEdit m_wndEdit; // to display tray notifications
int m_iWhichIcon; // 0/1 which HICON to use
BOOL m_bShutdown; // OK to terminate TRAYTEST
BOOL m_bShowTrayNotifications; // display info in main window
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
CButton* m_Button;
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg LRESULT OnTrayNotification(WPARAM wp, LPARAM lp);
afx_msg void OnClose();
afx_msg void OnAppOpen();
afx_msg void OnAppSuspend();
afx_msg void OnCaptureWindow();
afx_msg void OnCaptureDesktop();
afx_msg void OnCaptureControl();
afx_msg void OnCaptureClient();
afx_msg void OnClearCapture();
afx_msg void OnUpdateClearCapture(CCmdUI* pCmdUI);
afx_msg void OnUpdateCapture(CCmdUI* pCmdUI);
afx_msg void OnShowCodes(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__C7AB15CA_2F5E_4883_BCBF_445144F29E9E__INCLUDED_)
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.