Click here to Skip to main content
11,487,406 members (72,413 online)
Click here to Skip to main content
Add your own
alternative version

CatchCulator

, 18 Oct 2005 CPOL 92.2K 1.7K 69
A tool used to catch and combine values output by different applications.
catchculator_demo.zip
TestValues2.exe
TestValues1.exe
CatchCulator.exe
catchculator_sourcecode.zip
CatchCulator.clw
CatchCulator.dsp
CatchCulator.dsw
res
bitmap1.bmp
bmp00001.bmp
bmp00002.bmp
bmp00003.bmp
bmp00004.bmp
bmp00005.bmp
bmp00006.bmp
bmp00007.bmp
bmp00008.bmp
bmp00009.bmp
bmp00010.bmp
CatchCulator.ico
catchd1.bmp
catchu1.bmp
catchu2.bmp
catchu3.bmp
d1u1.bmp
d1u2.bmp
d1u3.bmp
d2u1.bmp
d2u2.bmp
d2u3.bmp
d3u1.bmp
d3u2.bmp
d3u3.bmp
delitemu.bmp
delu1.bmp
delu2.bmp
delu3.bmp
display_1.bmp
display_2.bmp
display_3.bmp
grad.bmp
settimer.bmp
timerset.bmp
timeru2.bmp
timeru3.bmp
// 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)

Share

About the Author

Mircea Puiu
Software Developer (Senior)
Europe Europe
More than 22 years of software development experience.
SCRUM Master nowadays

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150520.1 | Last Updated 18 Oct 2005
Article Copyright 2005 by Mircea Puiu
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid