17:
How can I display the caption in mirror

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library'

	#import <ExButton.dll>
	using namespace EXBUTTONLib;
*/
EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown();
spButton1->PutAlignment(EXBUTTONLib::exCenter);
spButton1->PutVAlignment(EXBUTTONLib::exMiddle);
spButton1->PutCaption(L"Command");
spButton1->PutBackColor(RGB(255,255,255));
spButton1->PutRotate(EXBUTTONLib::exHTMLMirror);

16:
How can I display vertically the caption

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library'

	#import <ExButton.dll>
	using namespace EXBUTTONLib;
*/
EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown();
spButton1->PutAlignment(EXBUTTONLib::exCenter);
spButton1->PutVAlignment(EXBUTTONLib::exMiddle);
spButton1->PutCaption(L"Command");
spButton1->PutBackColor(RGB(255,255,255));
spButton1->PutRotate(EXBUTTONLib::exHTMLVertical);

15:
How can I display a picture on the button's face to be scaled automatically once the button is resized

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library'

	#import <ExButton.dll>
	using namespace EXBUTTONLib;
*/
EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown();
spButton1->PutPicture(IPictureDispPtr(((IDispatch*)(spButton1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));
spButton1->PutPictureDisplay(EXBUTTONLib::Stretch);

14:
How can I display an & ( ampersand ) in the button's caption

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library'

	#import <ExButton.dll>
	using namespace EXBUTTONLib;
*/
EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown();
spButton1->PutCaption(L"Briana && Iasmina && Rares");

13:
How can I define my own visual appearance / style for my button

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library'

	#import <ExButton.dll>
	using namespace EXBUTTONLib;
*/
EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown();
spButton1->PutStyle(EXBUTTONLib::exCustom1);
spButton1->PutAllowHotState(VARIANT_TRUE);
spButton1->PutBackColor(RGB(255,255,255));
spButton1->Skin(EXBUTTONLib::exNormal,L"c:\\exontrol\\images\\normal.ebn");
spButton1->Skin(EXBUTTONLib::exPushed,L"c:\\exontrol\\images\\pushed.ebn");
spButton1->Skin(EXBUTTONLib::exHot,L"c:\\exontrol\\images\\hot.ebn");
spButton1->Skin(EXBUTTONLib::exDisabled,L"c:\\exontrol\\images\\border.ebn");

12:
How can I display a percent bar over the control

// Click event - Occurs when the user presses and then releases the left mouse button over the control.
void OnClickButton1()
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library'
		#import <ExButton.dll>
		using namespace EXBUTTONLib;
	*/
	EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown();
	spButton1->PutBackgroundExtValue(EXBUTTONLib::exIndexExt5,EXBUTTONLib::exClientExt,"25%");
	spButton1->PutBackgroundExtValue(EXBUTTONLib::exIndexExt5,EXBUTTONLib::exTextExt,spButton1->GetBackgroundExtValue(EXBUTTONLib::exIndexExt5,EXBUTTONLib::exClientExt));
}

EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown();
spButton1->PutCaption(L"Command");
spButton1->PutVAlignment(EXBUTTONLib::exTop);
spButton1->PutBackgroundExt(_bstr_t("bottom[4],left[4],right[4],bottom[16,pattern=0x000,frame=RGB(0,0,0)](left[50%,back=RGB(0,255,0),text=`<font ;6><sha ;;0>50%`,al") +
"ign=0x11,pattern=0x006,patterncolor=RGB(0,128,0),frame=RGB(0,128,0)])");
spButton1->PutBackgroundExtValue(EXBUTTONLib::exIndexExt5,EXBUTTONLib::exClientExt,"75%");
spButton1->PutBackgroundExtValue(EXBUTTONLib::exIndexExt5,EXBUTTONLib::exTextExt,spButton1->GetBackgroundExtValue(EXBUTTONLib::exIndexExt5,EXBUTTONLib::exClientExt));

11:
Is it possible to display an additional caption on the control's background

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library'

	#import <ExButton.dll>
	using namespace EXBUTTONLib;
*/
EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown();
spButton1->PutBackgroundExt(L"root[text=`<font ;6>additional`,align=0x21]");
spButton1->PutCaption(L"Command");

10:
How can I display a pattern over the button

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library'

	#import <ExButton.dll>
	using namespace EXBUTTONLib;
*/
EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown();
spButton1->PutBackgroundExt(L"root[pattern=0x006,patterncolor=RGB(128,128,128)]");
spButton1->PutCaption(L"Command");

9:
Does your control support subscript or superscript, in HTML captions

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library'

	#import <ExButton.dll>
	using namespace EXBUTTONLib;
*/
EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown();
spButton1->PutCaption(_bstr_t("Text with <font ;7><off 6><sha ;;0>subscript</off></font></sha> and <font ;7><off -6><sha ;;0>superscript</off></font></sha> su") +
"pport");

8:
How can I change the caption

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library'

	#import <ExButton.dll>
	using namespace EXBUTTONLib;
*/
EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown();
spButton1->PutCaption(L"Mühle");

7:
Is it possible to specify the control's background color when disabled

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library'

	#import <ExButton.dll>
	using namespace EXBUTTONLib;
*/
EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown();
spButton1->PutCaption(L"<fgcolor=808080>Disabled");
spButton1->PutEnabled(VARIANT_FALSE);
spButton1->PutForeColorState(EXBUTTONLib::exDisabled,RGB(0,255,0));

6:
How can I disable the control

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library'

	#import <ExButton.dll>
	using namespace EXBUTTONLib;
*/
EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown();
spButton1->PutCaption(L"just the button's caption");
spButton1->PutEnabled(VARIANT_FALSE);

5:
How do I put/resize/stretch a picture on the control's background

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library'

	#import <ExButton.dll>
	using namespace EXBUTTONLib;
*/
EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown();
spButton1->PutPicture(IPictureDispPtr(((IDispatch*)(spButton1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)")))));

4:
How can I change the control's font

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library'

	#import <ExButton.dll>
	using namespace EXBUTTONLib;
*/
EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown();
/*
	Includes the definition for CreateObject function like follows:

	#include <comdef.h>
	IUnknownPtr CreateObject( BSTR Object )
	{
		IUnknownPtr spResult;
		spResult.CreateInstance( Object );
		return spResult;
	};

*/
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'stdole' for the library: 'OLE Automation'

	#import <stdole2.tlb>
*/
stdole::FontPtr f = ::CreateObject(L"StdFont");
	f->PutName(L"Verdana");
	f->PutSize(_variant_t(long(12)));
spButton1->PutFont(IFontDispPtr(((stdole::FontPtr)(f))));
spButton1->PutCaption(L"just the button's caption");

3:
How do I change the control's foreground color

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library'

	#import <ExButton.dll>
	using namespace EXBUTTONLib;
*/
EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown();
spButton1->PutCaption(L"<font ;16><fgcolor=FF0000>just</fgcolor></font> the button's caption");

2:
How do I change the control's foreground color

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library'

	#import <ExButton.dll>
	using namespace EXBUTTONLib;
*/
EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown();
spButton1->PutForeColor(RGB(255,0,0));
spButton1->PutCaption(L"just the button's caption");

1:
How do I change the control's background color

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXBUTTONLib' for the library: 'ExButton 1.0 Control Library'

	#import <ExButton.dll>
	using namespace EXBUTTONLib;
*/
EXBUTTONLib::IButtonPtr spButton1 = GetDlgItem(IDC_BUTTON1)->GetControlUnknown();
spButton1->PutBackColor(RGB(255,0,0));
spButton1->PutBorderWidth(8);
spButton1->PutBorderHeight(8);