Click here to Skip to main content
13,248,562 members (77,541 online)
Click here to Skip to main content

Stats

266.8K views
76.3K downloads
224 bookmarked
Posted 30 Dec 2005

Form Designer

, 1 Aug 2009
Component for adding scriptable forms capabilities to an application.
MFCDemo.exe
CSDemo
App.ico
Bmp
ABottom.bmp
About.bmp
ALeft.bmp
ARight.bmp
ATop.bmp
AX.bmp
BringFront.bmp
Button.bmp
Center.bmp
Check.bmp
Combo.bmp
Copy.bmp
Cut.bmp
Delete.bmp
Down.bmp
Edit.bmp
Frame.bmp
Grid.bmp
GridSettings.bmp
HCenter.bmp
HScroll.bmp
HSL.bmp
HSpace.bmp
HSS.bmp
Left.bmp
List.bmp
New.bmp
Open.bmp
Paste.bmp
Picture.bmp
Preview.bmp
Progress.bmp
Props.bmp
Radio.bmp
Rectangle.bmp
Redo.bmp
Right.bmp
Save.bmp
SelAll.bmp
SelNone.bmp
SendBack.bmp
SL.bmp
Slider.bmp
Spin.bmp
SS.bmp
Tab.bmp
Text.bmp
Undo.bmp
Up.bmp
Validate.bmp
VCenter.bmp
VScroll.bmp
VSL.bmp
VSpace.bmp
VSS.bmp
Wand.bmp
CSDemo.suo
DaeDoe.bmp
MFCDemo
MFCDemo.dsp
MFCDemo.odl
res
DaeDoe.bmp
MFCDemo.ico
MFCDemoDoc.ico
Toolbar1.bmp
Toolbar2.bmp
Toolbar3.bmp
Wand.bmp
VBDemo
Bmp
ABottom.bmp
About.bmp
ALeft.bmp
ARight.bmp
ATop.bmp
AX.bmp
BringFront.bmp
Button.bmp
Center.bmp
Check.bmp
Combo.bmp
Copy.bmp
Cut.bmp
Delete.bmp
Down.bmp
Edit.bmp
Frame.bmp
Grid.bmp
GridSettings.bmp
HCenter.bmp
HScroll.bmp
HSL.bmp
HSpace.bmp
HSS.bmp
Left.bmp
List.bmp
New.bmp
Open.bmp
Paste.bmp
Picture.bmp
Preview.bmp
Progress.bmp
Props.bmp
Radio.bmp
Rectangle.bmp
Redo.bmp
Right.bmp
Save.bmp
SelAll.bmp
SelNone.bmp
SendBack.bmp
SL.bmp
Slider.bmp
Spin.bmp
SS.bmp
Tab.bmp
Text.bmp
Undo.bmp
Up.bmp
Validate.bmp
VCenter.bmp
VScroll.bmp
VSL.bmp
VSpace.bmp
VSS.bmp
Wand.bmp
Class1.cls
Class2.cls
DaeDoe.bmp
Form1.frm
Form1.frx
Form2.frm
Form2.frx
Form3.frm
Form4.frm
Form5.frm
Form5.frx
Form6.frm
Form6.frx
Form7.frm
Form7.frx
Form8.frm
Form8.frx
Module1.bas
VBDemo.vbp
DDForms.chm
DDForms
Archive
FormEditorItems.rgs
vssver.scc
Constants.scr
DaeDoe.bmp
DDForms.def
DDForms.vcproj.vspscc
EventSinkPassThrough.rgs
FormEditor.bmp
FormEditor.rgs
FormEditorItemCollection.rgs
FormEditorItemDetails.rgs
FormViewer.bmp
FormViewer.rgs
FormViewerItemCollection.rgs
FormViewerItemDetails.rgs
mssccprj.scc
PropPageExtended.rgs
PropPageFormEditor.rgs
PropPageFormViewer.rgs
PropPageSimpleScriptEditor.rgs
SimpleScriptEditor.bmp
SimpleScriptEditor.rgs
vssver.scc
DDFormsTools
CodeMaxDriver
CodeMaxDriver.rgs
CodeMaxDriver.vcproj.vspscc
CodeMaxDriverps.def
CodeMaxDriverPS.vcproj.vspscc
mssccprj.scc
vssver.scc
CodeSenseDriver
CodeSenseDriver.rgs
CodeSenseDriver.vcproj.vspscc
CodeSenseDriverps.def
CodeSenseDriverPS.vcproj.vspscc
mssccprj.scc
vssver.scc
DDPropPageAll
DDPropPageAll.def
DDPropPageAll.vcproj.vspscc
mssccprj.scc
PropPageAll.rgs
vssver.scc
DDUnlock
DDUnlock.vcproj.vspscc
mssccprj.scc
vssver.scc
DDControlPack
DDButton.bmp
DDCheckBox.bmp
DDComboBox.bmp
DDControlPack.rgs
DDControlPack.vcproj.vspscc
DDHorzScrollBar.bmp
DDLabel.bmp
DDListBox.bmp
DDPicture.bmp
DDRadioButton.bmp
DDTextBox.bmp
DDVertScrollBar.bmp
mssccprj.scc
vssver.scc
Redistributables
Ansi
CodeMaxDriver.dll
CodeSenseDriver.dll
DDControlPack.dll
DDForms.dll
DDPropPageAll.dll
Unicode
CodeMaxDriver.dll
CodeSenseDriver.dll
DDControlPack.dll
DDForms.dll
DDPropPageAll.dll
// MFCDemoView.h : interface of the CMFCDemoView class
//
// Author : David Shepherd
//			Copyright (c) 2002, DaeDoe-Software
//
/////////////////////////////////////////////////////////////////////////////

//{{AFX_INCLUDES()
//}}AFX_INCLUDES
#include "formeditor.h"
#include "formviewer.h"
#include "simplescripteditor.h"

#if !defined(AFX_MFCDEMOVIEW_H__1DCF031A_0EC7_465B_996E_891EFB9BCF3E__INCLUDED_)
#define AFX_MFCDEMOVIEW_H__1DCF031A_0EC7_465B_996E_891EFB9BCF3E__INCLUDED_

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

class CMFCDemoView : public CView
{
private:
	// application accelerators
	HACCEL m_hAccel;

	// objects to expose
	CComPtr<IDispatch> m_spClass1;
	CComPtr<IDispatch> m_spClass2;

	// form editor state
	BOOL m_FES_Busy;
	BOOL m_FES_Modified;
	BOOL m_FES_CanPaste;
	BOOL m_FES_CanUndo;
	BOOL m_FES_CanRedo;
	long m_FES_ItemCount;
	long m_FES_SelectedItemCount;

	// returns the temporary file name
	CString GetTempFileName();

protected: // create from serialization only
	CMFCDemoView();
	DECLARE_DYNCREATE(CMFCDemoView)

public:
	//{{AFX_DATA(CMFCDemoView)
	//}}AFX_DATA
	CTabCtrl	m_Tab;
	CFormEditor	m_FormEditor;
	CFormViewer	m_FormViewer;
	CSimpleScriptEditor	m_SimpleScriptEditor;

// Attributes
public:
	CMFCDemoDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMFCDemoView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMFCDemoView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMFCDemoView)
	afx_msg void OnStateChangedFormeditor(BOOL Busy, BOOL Modified, BOOL CanPaste, BOOL CanUndo, BOOL CanRedo, long ItemCount, long SelectedItemCount);
	afx_msg void OnEditExistingEventHandlerFormeditor();
	afx_msg void OnEditScriptErrorFormeditor(LPCTSTR Source, long Number, LPCTSTR Description);
	afx_msg void OnModifiedStateChangedSimplescripteditor(BOOL Modified);
	afx_msg void OnSelchangeTab(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnNew();
	afx_msg void OnUpdateNew(CCmdUI* pCmdUI);
	afx_msg void OnOpen();
	afx_msg void OnUpdateOpen(CCmdUI* pCmdUI);
	afx_msg void OnSave();
	afx_msg void OnUpdateSave(CCmdUI* pCmdUI);
	afx_msg void OnSaveAs();
	afx_msg void OnUpdateSaveAs(CCmdUI* pCmdUI);
	afx_msg void OnCut();
	afx_msg void OnUpdateCut(CCmdUI* pCmdUI);
	afx_msg void OnCopy();
	afx_msg void OnUpdateCopy(CCmdUI* pCmdUI);
	afx_msg void OnPaste();
	afx_msg void OnUpdatePaste(CCmdUI* pCmdUI);
	afx_msg void OnUndo();
	afx_msg void OnUpdateUndo(CCmdUI* pCmdUI);
	afx_msg void OnRedo();
	afx_msg void OnUpdateRedo(CCmdUI* pCmdUI);
	afx_msg void OnAbout();
	afx_msg void OnUpdateAbout(CCmdUI* pCmdUI);
	afx_msg void OnFrame();
	afx_msg void OnUpdateFrame(CCmdUI* pCmdUI);
	afx_msg void OnRectangle();
	afx_msg void OnUpdateRectangle(CCmdUI* pCmdUI);
	afx_msg void OnPicture();
	afx_msg void OnUpdatePicture(CCmdUI* pCmdUI);
	afx_msg void OnLabel();
	afx_msg void OnUpdateLabel(CCmdUI* pCmdUI);
	afx_msg void OnButton();
	afx_msg void OnUpdateButton(CCmdUI* pCmdUI);
	afx_msg void OnCheck();
	afx_msg void OnUpdateCheck(CCmdUI* pCmdUI);
	afx_msg void OnRadio();
	afx_msg void OnUpdateRadio(CCmdUI* pCmdUI);
	afx_msg void OnText();
	afx_msg void OnUpdateText(CCmdUI* pCmdUI);
	afx_msg void OnCombo();
	afx_msg void OnUpdateCombo(CCmdUI* pCmdUI);
	afx_msg void OnList();
	afx_msg void OnUpdateList(CCmdUI* pCmdUI);
	afx_msg void OnHScroll();
	afx_msg void OnUpdateHScroll(CCmdUI* pCmdUI);
	afx_msg void OnVScroll();
	afx_msg void OnUpdateVScroll(CCmdUI* pCmdUI);
	afx_msg void OnSpin();
	afx_msg void OnUpdateSpin(CCmdUI* pCmdUI);
	afx_msg void OnSlider();
	afx_msg void OnUpdateSlider(CCmdUI* pCmdUI);
	afx_msg void OnProgress();
	afx_msg void OnUpdateProgress(CCmdUI* pCmdUI);
	afx_msg void OnActivex();
	afx_msg void OnUpdateActivex(CCmdUI* pCmdUI);
	afx_msg void OnDelete();
	afx_msg void OnUpdateDelete(CCmdUI* pCmdUI);
	afx_msg void OnGrid();
	afx_msg void OnUpdateGrid(CCmdUI* pCmdUI);
	afx_msg void OnGridSettings();
	afx_msg void OnUpdateGridSettings(CCmdUI* pCmdUI);
	afx_msg void OnTab();
	afx_msg void OnUpdateTab(CCmdUI* pCmdUI);
	afx_msg void OnSelectAll();
	afx_msg void OnUpdateSelectAll(CCmdUI* pCmdUI);
	afx_msg void OnUnselectAll();
	afx_msg void OnUpdateUnselectAll(CCmdUI* pCmdUI);
	afx_msg void OnProperties();
	afx_msg void OnUpdateProperties(CCmdUI* pCmdUI);
	afx_msg void OnLeft();
	afx_msg void OnUpdateLeft(CCmdUI* pCmdUI);
	afx_msg void OnRight();
	afx_msg void OnUpdateRight(CCmdUI* pCmdUI);
	afx_msg void OnUp();
	afx_msg void OnUpdateUp(CCmdUI* pCmdUI);
	afx_msg void OnDown();
	afx_msg void OnUpdateDown(CCmdUI* pCmdUI);
	afx_msg void OnLayoutSendtoback();
	afx_msg void OnUpdateLayoutSendtoback(CCmdUI* pCmdUI);
	afx_msg void OnLayoutBringtofront();
	afx_msg void OnUpdateLayoutBringtofront(CCmdUI* pCmdUI);
	afx_msg void OnAlignLeft();
	afx_msg void OnUpdateAlignLeft(CCmdUI* pCmdUI);
	afx_msg void OnAlignRight();
	afx_msg void OnUpdateAlignRight(CCmdUI* pCmdUI);
	afx_msg void OnAlignTop();
	afx_msg void OnUpdateAlignTop(CCmdUI* pCmdUI);
	afx_msg void OnAlignBottom();
	afx_msg void OnUpdateAlignBottom(CCmdUI* pCmdUI);
	afx_msg void OnSpaceHorz();
	afx_msg void OnUpdateSpaceHorz(CCmdUI* pCmdUI);
	afx_msg void OnSpaceVert();
	afx_msg void OnUpdateSpaceVert(CCmdUI* pCmdUI);
	afx_msg void OnSizeLargestWidth();
	afx_msg void OnUpdateSizeLargestWidth(CCmdUI* pCmdUI);
	afx_msg void OnSizeLargestHeight();
	afx_msg void OnUpdateSizeLargestHeight(CCmdUI* pCmdUI);
	afx_msg void OnSizeLargest();
	afx_msg void OnUpdateSizeLargest(CCmdUI* pCmdUI);
	afx_msg void OnSizeSmallestWidth();
	afx_msg void OnUpdateSizeSmallestWidth(CCmdUI* pCmdUI);
	afx_msg void OnSizeSmallestHeight();
	afx_msg void OnUpdateSizeSmallestHeight(CCmdUI* pCmdUI);
	afx_msg void OnSizeSmallest();
	afx_msg void OnUpdateSizeSmallest(CCmdUI* pCmdUI);
	afx_msg void OnCenterHorz();
	afx_msg void OnUpdateCenterHorz(CCmdUI* pCmdUI);
	afx_msg void OnCenterVert();
	afx_msg void OnUpdateCenterVert(CCmdUI* pCmdUI);
	afx_msg void OnCenter();
	afx_msg void OnUpdateCenter(CCmdUI* pCmdUI);
	afx_msg void OnValidateScript();
	afx_msg void OnUpdateValidateScript(CCmdUI* pCmdUI);
	afx_msg void OnPreviewAutoSize();
	afx_msg void OnUpdatePreviewAutoSize(CCmdUI* pCmdUI);
	afx_msg void OnPreview();
	afx_msg void OnUpdatePreview(CCmdUI* pCmdUI);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in MFCDemoView.cpp
inline CMFCDemoDoc* CMFCDemoView::GetDocument()
   { return (CMFCDemoDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

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

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

DaveShep
Web Developer
United Kingdom United Kingdom
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.171114.1 | Last Updated 1 Aug 2009
Article Copyright 2005 by DaveShep
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid