Click here to Skip to main content
15,887,135 members
Articles / Mobile Apps

The StateWizard VC++ Add-in and Engine with Source Code

Rate me:
Please Sign up or sign in to vote.
4.73/5 (24 votes)
26 Mar 2009CPOL12 min read 190.2K   2.8K   132  
A cross-platform state-oriented application framework and a ClassWizard-like round-trip UML dynamic modeling/development tool that runs in popular IDEs. Aims at providing concurrent, distributed, and real-time application development tools for Win32/Linux
#if !defined(AFX_CODESIZEDLG_H__2DBAA13B_85BC_4D92_96A6_990E8B4F5D7F__INCLUDED_)
#define AFX_CODESIZEDLG_H__2DBAA13B_85BC_4D92_96A6_990E8B4F5D7F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CodeSizeDlg.h : header file
//
#include "resource.h"
#include "DSUtils.h"
#include "afxcmn.h"

#include "MapfileAnalysis.h"

#define CODE_SIZE_REPORT_FORMAT _T("%-30s %15d %15d %15d %15d %15XH\n")
#define CODE_SIZE_REPORT_FORMAT1 _T("%-30s %15d %15d %15d %15d\n")
#define CODE_SIZE_STR_REPORT_FORMAT _T("%-30s %15s %15s %15s %15s %16s\n")

#define VAR_SIZE_IN_DETAIL _T("%-30s %-40s %15d %15XH \n")
#define VAR_SIZE_IN_DETAIL1 _T("%-30s %-40s %15d \n")
#define VAR_SIZE_STR_IN_DETAIL _T("%-30s %-40s %15s %15s \n")

/////////////////////////////////////////////////////////////////////////////
// CCodeSizeDlg dialog

class CCodeSizeDlg : public CDialog
{
// Construction
public:
	//IApplication *m_pApplication;
	CCodeSizeDlg(LPCTSTR lpMapfilePath, CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CCodeSizeDlg)
	enum { IDD = IDD_CODESIZE_DLG };	
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CCodeSizeDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSave();
	virtual void OnCancel();
	afx_msg void OnClose();
	afx_msg void OnDestroy();
	afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CString m_sMapfilePath;
	CString m_sFilePath;
	void InsertItem();
	void PrintMemoryDetail(int nType, CStdioFile& stdFile, ListNode *pSortHead);

public:
	CListCtrl m_CtrlCodeSizeList;
};

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

#endif // !defined(AFX_CODESIZEDLG_H__2DBAA13B_85BC_4D92_96A6_990E8B4F5D7F__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)
United States United States
Alex "Question is more important than the answer."

Comments and Discussions