Click here to Skip to main content
15,892,059 members
Articles / Programming Languages / C++

CatchCulator

Rate me:
Please Sign up or sign in to vote.
4.97/5 (71 votes)
18 Oct 2005CPOL7 min read 130.7K   2K   69  
A tool used to catch and combine values output by different applications.
// Author: Dr. Mircea Puiu
// Created on: October 2005 for CodeProject
//
// CatchCulatorDlg.h : header file
//

#if !defined(AFX_CATCHCULATORDLG_H__21EB1425_F91E_4989_BB19_33B4C0B37FFC__INCLUDED_)
#define AFX_CATCHCULATORDLG_H__21EB1425_F91E_4989_BB19_33B4C0B37FFC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "CatchDlg.h"
#include "StaticDisplay.h"

/////////////////////////////////////////////////////////////////////////////
// CCatchCulatorDlg dialog

class CCatchCulatorDlg : public CDialog
{
// Construction
public:
	int m_nTimerValue;
	bool m_bByTimer;
	void UpdateDisplay(int ID);
	CString m_strModifiedName;
	void ModifyNameInScript(CStaticDisplay *pDisplay, CString strOld, CString strNew);
	void RemoveScriptLinesFor(CStaticDisplay *pDisplay, CString &strSel);
	void ProcessScript(CStaticDisplay *pDisplay);
	int GetOperationID(char far *op);
	HTREEITEM FindVariable(char far *varName);
	double ValueOf(char far* varName);
	CBitmapButton m_buttonSetTimer;
	CBitmapButton m_buttonTimer;
	CBitmapButton m_buttonDelItem;
	CBitmapButton m_buttonDelTree;
	CBitmapButton m_buttonDisplay3;
	CBitmapButton m_buttonDisplay2;
	CBitmapButton m_buttonDisplay1;
	CBitmapButton m_buttonShowCatcher;
	CCatchDlg dlgCatch;
	COLORREF m_colorBkGnd;
	CBrush m_brushBkGnd;
	CCatchCulatorDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CCatchCulatorDlg)
	enum { IDD = IDD_CATCHCULATOR_DIALOG };
	CStaticDisplay	m_display3;
	CStaticDisplay	m_display2;
	CStaticDisplay	m_display1;
	CTreeCtrl	m_treeCatches;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCatchCulatorDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCatchCulatorDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnButtonShowCatcher();
	afx_msg void OnEndlabeleditTreeCatches(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnButtonShowD1();
	afx_msg void OnButtonShowD2();
	afx_msg void OnButtonShowD3();
	afx_msg void OnButtonDelTree();
	afx_msg void OnButtonDelItem();
	afx_msg void OnBeginlabeleditTreeCatches(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnButtonTimer();
	afx_msg void OnButtonSetTimer();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CATCHCULATORDLG_H__21EB1425_F91E_4989_BB19_33B4C0B37FFC__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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Europe Europe
More than 30 years of software development experience.
(also playing the SCRUM Master role depending on the project)

Comments and Discussions