Click here to Skip to main content
13,795,726 members
Click here to Skip to main content

Stats

292.3K views
78.3K downloads
226 bookmarked
Posted 30 Dec 2005
Licenced CPOL

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
MFCDemo.reg
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
DaeDoe.bmp
VBDemo.vbp
DDForms.chm
DDForms
Archive
FormEditorItems.rgs
vssver.scc
Constants.scr
DaeDoe.bmp
DDForms.def
DDForms.vcproj
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
CodeMaxDriver.vcproj.vspscc
CodeMaxDriverps.def
CodeMaxDriverPS.vcproj
CodeMaxDriverPS.vcproj.vspscc
mssccprj.scc
vssver.scc
CodeSenseDriver
CodeSenseDriver.rgs
CodeSenseDriver.vcproj
CodeSenseDriver.vcproj.vspscc
CodeSenseDriverps.def
CodeSenseDriverPS.vcproj
CodeSenseDriverPS.vcproj.vspscc
mssccprj.scc
vssver.scc
DDPropPageAll
DDPropPageAll.def
DDPropPageAll.vcproj
DDPropPageAll.vcproj.vspscc
mssccprj.scc
PropPageAll.rgs
vssver.scc
DDUnlock
DDUnlock.vcproj
DDUnlock.vcproj.vspscc
mssccprj.scc
vssver.scc
DDControlPack
DDButton.bmp
DDCheckBox.bmp
DDComboBox.bmp
DDControlPack.rgs
DDControlPack.vcproj
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
// MyMacros.h
//
// Author : David Shepherd
//			Copyright (c) 2002, DaeDoe-Software
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYMACROS_H__E8847601_2853_11D6_B6A6_856C06A39D46__INCLUDED_)
#define AFX_MYMACROS_H__E8847601_2853_11D6_B6A6_856C06A39D46__INCLUDED_

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

// safely converts a BSTR to a wide string pointer
#define BSTR2W(s) ( (const wchar_t *) ((s) ? (s) : L"") )

// converts a BOOL to a VARIANT_BOOL
#define B2VB(b) (((b)==FALSE) ? VARIANT_FALSE : VARIANT_TRUE)
// converts a VARIANT_BOOL to a BOOL
#define VB2B(vb) (((vb)==VARIANT_FALSE) ? FALSE : TRUE)

// converts a system color index to an OLE_COLOR value
#define MAKE_OLE_COLOR(ix) (0x80000000 | (ix))

// determines the number of elements in an array
#define NUM_ELEMENTS(array,type) (sizeof(array)/sizeof(type))

// converts a point size to the size in pixels
#define POINT_SIZE_TO_PIXELS(hdc,size)				\
	((GetDeviceCaps((hdc),LOGPIXELSY)*(size))/72)

// determines the aspect ratio of a device context
#define ASPECT_RATIO(dc)							\
	((float)(dc).GetDeviceCaps(LOGPIXELSX)/(dc).GetDeviceCaps(LOGPIXELSY))

// prevents a class from being copied
#define NOCOPY(c)									\
private:											\
	c(const c&)										\
	{}												\
	operator=(const c&)								\
	{}

// begin try catch all block
#define TRY											\
	BOOL Caught=FALSE;								\
	try												\
	{

// end try catch all block
#define CATCH_ALL									\
	}												\
	catch(std::exception &)							\
	{												\
		ATLTRACE(_T("caught(std::exception &)\n"));	\
		ATLASSERT(FALSE);							\
		Caught=TRUE;								\
	}												\
	catch(...)										\
	{												\
		ATLTRACE(_T("caught(...)\n"));				\
		ATLASSERT(FALSE);							\
		Caught=TRUE;								\
	}

// begin standard interface function implementation block
#define IMP_BEGIN									\
	HRESULT RetVal=S_OK;							\
	try												\
	{

// end standard interface function implementation block
#define IMP_END										\
	}												\
	catch(CHResult &hr)								\
	{												\
		ATLTRACE(_T("caught(CHResult &) 0x%08X\n"),	\
			(HRESULT)hr);							\
		RetVal=hr;									\
	}												\
	catch(std::exception &)							\
	{												\
		ATLTRACE(_T("caught(std::exception &)\n"));	\
		ATLASSERT(FALSE);							\
		RetVal=E_UNEXPECTED;						\
	}												\
	catch(...)										\
	{												\
		ATLTRACE(_T("caught(...)\n"));				\
		ATLASSERT(FALSE);							\
		RetVal=E_UNEXPECTED;						\
	}

// standard property request edit implementation
#define REQUEST_EDIT(dispid)						\
	if(!m_nFreezeEvents)							\
	{												\
		if(FireOnRequestEdit(dispid)==S_FALSE)		\
		{											\
			throw CHResult(S_FALSE);				\
		}											\
	}

// standard property change notification implementation
#define PROPERTY_CHANGED(dispid)					\
	SetDirty(TRUE);									\
	if(!m_nFreezeEvents)							\
	{												\
		(void)FireOnChanged(dispid);				\
	}												\
	(void)FireViewChange();							\
	(void)SendOnDataChange(NULL);

#endif // !defined(AFX_MYMACROS_H__E8847601_2853_11D6_B6A6_856C06A39D46__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 | Cookies | Terms of Use | Mobile
Web02 | 2.8.181207.3 | Last Updated 1 Aug 2009
Article Copyright 2005 by DaveShep
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid