Click here to Skip to main content
15,885,366 members
Articles / Containers / Virtual Machine

An extendable report editor

Rate me:
Please Sign up or sign in to vote.
5.00/5 (11 votes)
3 Sep 2008CPOL3 min read 41K   2K   35  
An extendable report editor. You can simply add your own controls without recompiling the program or writing annoying plug-ins.
// MyVM.h: interface for the CMyVM class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYVM_H__C288C814_003A_484F_849F_04EFFAAEAEF7__INCLUDED_)
#define AFX_MYVM_H__C288C814_003A_484F_849F_04EFFAAEAEF7__INCLUDED_

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

#include "Vm.h"
#include "myvmem.h"
#include "common.h"	// Added by ClassView
#include "comnctls.h"
#include "canvas.h"
#include "rect.h"
#include "objboxlist.h"

class CMyVM:public CVm{
public:
	CEditBox *i_eb;
	CMyVMem *vmem;
	CImgFile *img_file;
	CCanvas *i_canvas;
	CObjBox *i_obj;
	CObjBoxList *i_obj_list;
	public:
	int GetObjName(CObjBox *pobj,CMem *mem);
	DWORD GetParam(int i);
	int WriteImgToVMem(CFileBase *file);
	virtual int do_int();
	int LoadFile(char *fn);
	int LoadFile(CFileBase *file);
    CMyVM();
    ~CMyVM();
    int Init();
    int Destroy();
    int Print();
    int InitBasic();
	/////////////////
	int do_int_1();
	int do_int_2();
	int do_int_3();
	int do_int_4();
	int do_int_5();
	int do_int_6();
	int do_int_7();
	int do_int_8();
	int do_int_9();
	int do_int_10();
	int do_int_11();
	int do_int_12();
	int do_int_13();
	int do_int_14();
	int do_int_15();
	int do_int_16();
	int do_int_17();
	int do_int_18();
	int do_int_19();
	int do_int_20();
	int do_int_21();
	int do_int_22();
	int do_int_23();
	int do_int_24();
	int do_int_25();
	int do_int_26();
};

#endif // !defined(AFX_MYVM_H__C288C814_003A_484F_849F_04EFFAAEAEF7__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
China China
26 years old, 2 years work experience.

Comments and Discussions