120:
Is it possible to add leading-zero for masking floating points

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L"-###,###,##0.00;;;float");
spMaskEdit1->PutText(L"1234");

119:
How can I show the full mask if the field is empty and gets the focus

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"!(999) 000 0000;;;warning=Invalid character!,select=4,overtype");
spMaskEdit1->PutAllowEmptyValue(EXMASKEDITLib::exAllowEmptyValueShowMask);
spMaskEdit1->PutText(L"");

118:
How can I mask a date (keep leading zeroes always visible) (method 4)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"!00/00/0000;;0;empty,validateas=1,invalid=Invalid date!,warning=Invalid character!,select=4,overtype");
spMaskEdit1->PutText(L"COleDateTime(2001,1,2,0,00,00).operator DATE()");

117:
How can I mask a date (keep leading zeroes always visible) (method 3)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"!00/00/0000;;0;select=4,empty,overtype");
spMaskEdit1->PutText(L"COleDateTime(2001,1,2,0,00,00).operator DATE()");
spMaskEdit1->PutWarning(L"Invalid character!");
spMaskEdit1->PutInvalid(L"Invalid date!");
spMaskEdit1->PutValidateAs(EXMASKEDITLib::exValidateAsDate);

116:
How can I mask a date (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectRequiredEditableGotFocus);
spMaskEdit1->PutMask(L"!99/99/9999;; ;select=4,overtype");
spMaskEdit1->PutText(L"COleDateTime(2001,1,2,0,00,00).operator DATE()");
spMaskEdit1->PutWarning(L"Invalid character!");
spMaskEdit1->PutInvalid(L"Invalid date!");
spMaskEdit1->PutValidateAs(EXMASKEDITLib::exValidateAsDate);
spMaskEdit1->PutAllowEmptyValue(EXMASKEDITLib::exAllowEmptyValueShowNothing);

115:
How can I make the field to support empty values (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"!(999) 000 0000;;;empty,select=4,overtype,invalid=invalid phone number,beep");

114:
How can I make the field to support empty values (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutAllowEmptyValue(EXMASKEDITLib::exAllowEmptyValueShowNothing);
spMaskEdit1->PutMask(L"!(999) 000 0000");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);

113:
How do I get the value with no double quoted strings

// Change event - Fired while the user changes the control's text.
void OnChangeMaskEdit1()
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'
		#import <MaskEdit.dll>
		using namespace EXMASKEDITLib;
	*/
	EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
	OutputDebugStringW( spMaskEdit1->GetValue(long(3)) );
}

EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"`IP address is `{0,255}\\.{0,255}\\.{0,255}\\.{0,255}");
spMaskEdit1->PutMaskChar(48);
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutText(L"1.2.3.4");

112:
How can I mask a RGB color

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"`RGB(`{0,255},{0,255},{0,255}`)`");
spMaskEdit1->PutMaskChar(48);
spMaskEdit1->PutText(L"RGB(255,0,0)");

111:
I noticed that an empty field is validated. Can this be changed

// ValidateValue event - Validates the field's value, once the user leaves the field.
void OnValidateValueMaskEdit1(VARIANT NewValue,BOOL FAR* Cancel)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'
		#import <MaskEdit.dll>
		using namespace EXMASKEDITLib;
	*/
	EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
	Cancel = VARIANT_TRUE;
}

EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutInvalid(L"The value you entered isn't appropriate for the input mask <b>'<%mask%>'</b> specified for this field.");
spMaskEdit1->PutMask(L"!(999) 000-0000");
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectRequiredEditableGotFocus);
spMaskEdit1->PutInsertMode(EXMASKEDITLib::exEditOvertypeMode);

110:
How can I play a beep when the user enters inappropriate value for the field, instead displaying the tooltip

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutInvalid(L" ");
spMaskEdit1->PutMask(L"!(999) 000-0000");
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectRequiredEditableGotFocus);
spMaskEdit1->PutInsertMode(EXMASKEDITLib::exEditOvertypeMode);
spMaskEdit1->PutText(L"123-4567");
spMaskEdit1->PutAllowBeep(VARIANT_TRUE);

109:
How can I restrict the data input until the user enters appropiate value (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutInvalid(L"The value you entered isn't appropriate for the input mask <b>'<%mask%>'</b> specified for this field.");
spMaskEdit1->PutMask(L"!(999) 000-0000");
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectRequiredEditableGotFocus);
spMaskEdit1->PutInsertMode(EXMASKEDITLib::exEditOvertypeMode);
spMaskEdit1->PutText(L"123-4567");

108:
How can I restrict the data input until the user enters appropiate value (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(_bstr_t("!(999) 000-0000;;;invalid=The value you entered isn't appropriate for the input mask <b>'<%mask%>'</b> specified for this field") +
".");
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectRequiredEditableGotFocus);
spMaskEdit1->PutInsertMode(EXMASKEDITLib::exEditOvertypeMode);
spMaskEdit1->PutText(L"123-4567");

107:
How do I set the control's field from right to left

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"`Phone: `!(999) 000 0000");
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutText(L"8450287");

106:
How can I specify multiple masks

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutInsertMode(EXMASKEDITLib::exEditOvertypeMode);
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutVisibleMasks(6);
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutMasks(_bstr_t("Local;!000-0000|Domestic;!(999) 000-0000|International;!`+1` 999-000-0000|Dialed in the US;!`1` 999-000-0000|Dialed from German") +
"y;!`001` 999-000-0000|Dialed from France;!`191` 999-000-0000");
spMaskEdit1->PutText(L"845 0287");
spMaskEdit1->PutActiveMask(1);

105:
How can I mask a date (method 1, limit date)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L"{1,12}/{1,31}/{1950,2015}");
spMaskEdit1->PutText(L"COleDateTime(2001,1,2,0,00,00).operator DATE()");
spMaskEdit1->PutWarning(L"Invalid character!");
spMaskEdit1->PutInvalid(L"Invalid date!");
spMaskEdit1->PutValidateAs(EXMASKEDITLib::exValidateAsDate);

104:
How can I mask a medium time (method 3)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L"99:00;;0;overtype");
spMaskEdit1->PutText(L"01:22");
spMaskEdit1->PutWarning(L"Invalid character");

103:
How can I mask a medium time (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L"{1,12}:{0,59} »[aApP]M");
spMaskEdit1->PutText(L"11:22 AM");
spMaskEdit1->PutWarning(L"Invalid character");

102:
How can I mask a medium time (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L"99:00 »[aApP]M");
spMaskEdit1->PutText(L" 1:22 PM");
spMaskEdit1->PutWarning(L"Invalid character");

101:
How can I mask a short time (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L"00:00;;0;overtype");
spMaskEdit1->PutText(L"01:22");
spMaskEdit1->PutWarning(L"Invalid character");

100:
How can I mask a short time (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L"00:00");
spMaskEdit1->PutText(L"01:22");
spMaskEdit1->PutWarning(L"Invalid character");

99:
How can I mask a long time (method 3)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L"99:00:00;;0;overtype");
spMaskEdit1->PutText(L"01:22:00");
spMaskEdit1->PutWarning(L"Invalid character");

98:
How can I mask a long time (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L"{1,12}:{0,59}:{0,59} »[aApP]M");
spMaskEdit1->PutText(L"11:22:34 AM");
spMaskEdit1->PutWarning(L"Invalid character");

97:
How can I mask a long time (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L"99:00:00 »[aApP]M");
spMaskEdit1->PutText(L" 1:22:00 PM");
spMaskEdit1->PutWarning(L"Invalid character");

96:
How can I mask a password

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L";;;password");
spMaskEdit1->PutText(L"12");
spMaskEdit1->PutWarning(L"Invalid character");

95:
How can I mask an extension

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L"99999");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"12");
spMaskEdit1->PutWarning(L"Invalid character");

94:
How can I mask a zip code

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L"00000-9999");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"12");
spMaskEdit1->PutWarning(L"Invalid character");

93:
How can I mask a social security number

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L"000-00-0000");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"12");
spMaskEdit1->PutWarning(L"Invalid character");

92:
How can I mask a phone number

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L"!(999) 000 0000");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"8450287");
spMaskEdit1->PutWarning(L"Invalid character");

91:
How can I mask a binary number (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"[01][01][01][01][01][01][01][01];;0;overtype");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"001");
spMaskEdit1->PutWarning(L"Invalid character");

90:
How can I mask a binary number (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"[01][01][01][01][01][01][01][01]");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"001");
spMaskEdit1->PutWarning(L"Invalid character");

89:
How can I mask a hexa number (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"»[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F];;0;overtype");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"00f");
spMaskEdit1->PutWarning(L"Invalid character");

88:
How can I mask a hexa number (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"»[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"00f");
spMaskEdit1->PutWarning(L"Invalid character");

87:
How do I mask an integer number

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L";;;float,grouping=,digits=0");
spMaskEdit1->PutText(L"12345.67");

86:
How do I mask a decimal point number, including grouping of digits

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L";;;float");
spMaskEdit1->PutText(L"12345.67");

85:
How can I mask an email address

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L"`e-mail: `*@*.*");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"mfl@ex");

84:
How can I mask an URL address

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L"`http://`*.*.*");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"www.");

83:
How can I mask an IP addresse

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L"{0,255}.{0,255}.{0,255}.{0,255}");
spMaskEdit1->PutText(L"12.2");

82:
How can I mask a license key

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutMask(L"AAAA-AAAA-AAAA-AAAA");
spMaskEdit1->PutText(L"12A");

81:
How can I specify the accepted characters only, converted to lowercase

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`1,2,3,4,a,A,b,B or c,C(->lowercase): `«[1-4aAbBcC][1-4aAbBcC][1-4aAbBcC][1-4aAbBcC]");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"WAa");
spMaskEdit1->PutWarning(L"Invalid character");

80:
How can I specify the accepted characters only, converted to uppercase

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`1,2,3,4,a,A,b,B or c,C(->uppercase): `»[1-4aAbBcC][1-4aAbBcC][1-4aAbBcC][1-4aAbBcC]");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"WAa");
spMaskEdit1->PutWarning(L"Invalid character");

79:
How can I specify the accepted characters only

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`1,2,3,4,a,b or c: `[1-4abc][1-4abc][1-4abc][1-4abc]");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"WAa");
spMaskEdit1->PutWarning(L"Invalid character");

78:
How can I input a number with lower and upper margins

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`number between 1950 and 2050: `{1950,2050}");
spMaskEdit1->PutWarning(L"Invalid character");

77:
How can I mask an url

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`any: `http://*.*.*");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"www.exontrol.com");
spMaskEdit1->PutWarning(L"Invalid character");

76:
How can I enter any characters combinations, converted to lowercase

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`any: `«*");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"Aa");
spMaskEdit1->PutWarning(L"Invalid character");

75:
How can I enter any characters combinations, converted to uppercase

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`any: `»*");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"Aa");
spMaskEdit1->PutWarning(L"Invalid character");

74:
How can I enter any characters combinations

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`any: `*");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"Aa");
spMaskEdit1->PutWarning(L"Invalid character");

73:
How can I enter any letter, converted to lowercase (entry required) (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`letter(->lowercase): `«[a-zA-Z][a-zA-Z][a-zA-Z][a-zA-Z]");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"Aa");
spMaskEdit1->PutWarning(L"Invalid character");

72:
How can I enter any letter, converted to lowercase (entry required) (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`letter(->lowercase): `<<<<");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"Aa");
spMaskEdit1->PutWarning(L"Invalid character");

71:
How can I enter any letter, converted to uppercase (entry required) (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`letter(->uppercase): `»[a-zA-Z][a-zA-Z][a-zA-Z][a-zA-Z]");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"Aa");
spMaskEdit1->PutWarning(L"Invalid character");

70:
How can I enter any letter, converted to uppercase (entry required) (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`letter(->uppercase): `>>>>");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"Aa");
spMaskEdit1->PutWarning(L"Invalid character");

69:
How can I enter any character or a space (entry optional)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`character,space,optional: `CCCC");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"Aa");

68:
How can I enter any character or a space (entry required)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`character,space: `&&&&");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"Aa");

67:
How can I enter any letter or space (entry optional)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`letter,space,optional: `????");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"Aa");
spMaskEdit1->PutWarning(L"Invalid character");

66:
Is it possible to display the field with no masking or placeholders, when it has no focus

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutTextIncludeLiteralsLoseFocus(EXMASKEDITLib::exClipModeLiteralsInclude);
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`Phone: `!(999) 000-0000");

65:
I have the mask starting with literals, is it possible to assign the text on editable part only, when calling the Text property

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`Upper Hexa [0-9a-fA-F]: `»[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"09af");
spMaskEdit1->PutWarning(L"Invalid character");

64:
How can I enter a proper name, so the first letter to be upper, rest lower, and so on

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`letter(->uppercase),any,space,letter(->uppercase),any: `»L««*» »L««*");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"mihai filimon");
spMaskEdit1->PutWarning(L"Invalid character");

63:
How can I enter the first letter converted to upercase, and anything else after as typed (proper)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`letter(->uppercase),any: `»L«*");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"aFILe");
spMaskEdit1->PutWarning(L"Invalid character");

62:
How can I enter the first letter converted to upercase, and anything else after in lowercase (proper)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`letter(->uppercase),any: `»L««*");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"aFILe");
spMaskEdit1->PutWarning(L"Invalid character");

61:
How can I enter any letter (entry require)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`letter: `LLLL");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"Aa");
spMaskEdit1->PutWarning(L"Invalid character");

60:
How can I enter any letter, digit, converted to lowercase (entry required)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`letter(->lowercase),digit: `«AAAA");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"AA");
spMaskEdit1->PutWarning(L"Invalid character");

59:
How can I enter any letter, digit, converted to uppercase (entry required)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`letter(->uppercase),digit: `»AAAA");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"aa");
spMaskEdit1->PutWarning(L"Invalid character");

58:
How can I enter any letter, digit (entry required)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`letter,digit: `AAAA");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"Aa");
spMaskEdit1->PutWarning(L"Invalid character");

57:
How can I enter a hexa character, converted to lower, [0-9a-fA-F] ( entry required )

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`Lower Hexa [0-9a-fA-F]: `«[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"FF");
spMaskEdit1->PutWarning(L"Invalid character");

56:
How can I enter a hexa character, converted to upper, [0-9a-fA-F] ( entry required )

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`Upper Hexa [0-9a-fA-F]: `»[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"ff");
spMaskEdit1->PutWarning(L"Invalid character");

55:
How can I enter an upper case hexa character, [0-9],[A-F] ( entry required )

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`Hexa [0-9],[A-F]: `XXXX");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"12");
spMaskEdit1->PutWarning(L"Invalid character");

54:
How can I enter a lower case hexa character, [0-9],[a-f] ( entry required )

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`Hexa [0-9],[a-f]: `xxxx");
spMaskEdit1->PutTextIncludeLiterals(EXMASKEDITLib::exClipModeLiteralsExclude);
spMaskEdit1->PutText(L"12");
spMaskEdit1->PutWarning(L"Invalid character");

53:
How can I enter a digit or space (entry not required; plus and minus signs not allowed)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`digit,space,optional: `9999");
spMaskEdit1->PutText(L"12");
spMaskEdit1->PutWarning(L"Invalid character");

52:
How can I enter a digit (0 through 9, entry required; plus [+] and minus [-] signs not allowed)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`digit: `0000");
spMaskEdit1->PutText(L"12");
spMaskEdit1->PutWarning(L"Invalid character");

51:
How can I enter a digit, +, - or space (entry not required)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutMask(L"`digit,+,-,space,optional: `####");
spMaskEdit1->PutText(L"12");
spMaskEdit1->PutWarning(L"Invalid character");

50:
How can I add more literals at once (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"\"This text is included between \\\"\\\" characters: \" 00:00:00");

49:
How can I add more literals at once (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"`This text is included between \\`\\` characters: ` 00:00:00");

48:
Is it possible to change the control's border, using your EBN objects

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spMaskEdit1->PutAppearance(EXMASKEDITLib::AppearanceEnum(0x1000000));
spMaskEdit1->PutWarning(L"Invalid character");
spMaskEdit1->PutMask(L"`Time: ` 00:00:00");

47:
How can I get the value as it is displayed

// Change event - Fired while the user changes the control's text.
void OnChangeMaskEdit1()
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'
		#import <MaskEdit.dll>
		using namespace EXMASKEDITLib;
	*/
	EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
	OutputDebugStringW( spMaskEdit1->GetText() );
}

EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"00:00:00;;;overtype");
spMaskEdit1->PutText(L"12");

46:
How can I get the just typed and accepted characters from the field
// Change event - Fired while the user changes the control's text.
void OnChangeMaskEdit1()
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'
		#import <MaskEdit.dll>
		using namespace EXMASKEDITLib;
	*/
	EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
	OutputDebugStringW( spMaskEdit1->GetValue(long(2)) );
}

EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"00:00:00;;;overtype");
spMaskEdit1->PutText(L"12");

45:
How can I get the value with no masking or placeholder character
// Change event - Fired while the user changes the control's text.
void OnChangeMaskEdit1()
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'
		#import <MaskEdit.dll>
		using namespace EXMASKEDITLib;
	*/
	EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
	OutputDebugStringW( spMaskEdit1->GetValue(long(1)) );
}

EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"00:00:00;;;overtype");
spMaskEdit1->PutText(L"12");

44:
How can I change the masking or placeholder character (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"`Time: `00:00;;0;overtype");

43:
How can I change the masking or placeholder character (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"`Time: `00:00");
spMaskEdit1->PutMaskChar(48);
spMaskEdit1->PutInsertMode(EXMASKEDITLib::exEditOvertypeMode);

42:
Can I use your overtype mode in a multi-line control

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutText(L"text");
spMaskEdit1->PutMultiLine(VARIANT_TRUE);
spMaskEdit1->PutInsertMode(EXMASKEDITLib::exEditOvertypeMode);

41:
Is it possible to show the control's content with a different color, while the control's content is not valid

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"`Phone: `!(999) 000 0000");
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutText(L"8450287");
spMaskEdit1->PutForeColorRich(RGB(255,0,0));
spMaskEdit1->PutType(EXMASKEDITLib::exTypeRichEdit);

40:
How can I select the empty and editable entity, when the control got the focus (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"`Date: `{1,12}/{1,31}/{1950,2050}");
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectEditableGotFocus);
spMaskEdit1->PutText(L"1/1/");

39:
How can I select the empty and editable entity, when the control got the focus (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"`Date: `{1,12}/{1,31}/{1950,2050};;;select=2");
spMaskEdit1->PutText(L"1/1/");

38:
How can I select the entire text, when the control got the focus (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"`Date: `{1,12}/{1,31}/{1950,2050};;;select=1");
spMaskEdit1->PutText(L"COleDateTime(2001,1,1,0,00,00).operator DATE()");

37:
How can I select the entire text, when the control got the focus (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"`Date: `{1,12}/{1,31}/{1950,2050}");
spMaskEdit1->PutSelectGotFocus(EXMASKEDITLib::exSelectAllGotFocus);
spMaskEdit1->PutText(L"COleDateTime(2001,1,1,0,00,00).operator DATE()");

36:
Does your control support subscript or superscript, in HTML tooltips

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutWarning(L"<sha ;;0>Invalid <b><font ;6><off -6>2<off 4>3<off 4>1 character");
spMaskEdit1->PutMask(L"`Time: ` 00:00:00");

35:
How can I change the font on the control's tooltip

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutWarning(L"<font ;14>Invalid character");
spMaskEdit1->PutMask(L"`Time: ` 00:00:00");

34:
How can I display any picture on the field's tooltip

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif");
spMaskEdit1->PutWarning(L"<img>pic1</img> Invalid character");
spMaskEdit1->PutMask(L"`Time: ` 00:00:00");

33:
How can I display any icon on the field's tooltip

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spMaskEdit1->PutWarning(L"<img>1</img> Invalid character");
spMaskEdit1->PutMask(L"`Time: ` 00:00:00");

32:
How can I change the visual appearance of the tooltip shown when user pressed an invalid character (Method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutBackground(EXMASKEDITLib::exToolTipBackColor,RGB(0,0,255));
spMaskEdit1->PutBackground(EXMASKEDITLib::exToolTipForeColor,RGB(255,255,0));
spMaskEdit1->PutWarning(L"Invalid character");
spMaskEdit1->PutMask(L"`Time: ` 00:00:00");

31:
How can I change the visual appearance of the tooltip shown when user pressed an invalid character (Method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spMaskEdit1->PutBackground(EXMASKEDITLib::exToolTipAppearance,0x1000000);
spMaskEdit1->PutWarning(L"Invalid character");
spMaskEdit1->PutMask(L"`Time: ` 00:00:00");

30:
Is it possible to show a message when the user enters an invalid character ( method 2 )

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"`Time: ` 00:00:00;;;warning=Invalid character");

29:
Is it possible to show a message when the user enters an invalid character ( method 1 )

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutWarning(L"Invalid character");
spMaskEdit1->PutMask(L"`Time: ` 00:00:00");

28:
Is it possible to play a beep/sound when user enters an invalid character ( method 2 )
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"`Time: ` 00:00:00;;;beep");

27:
Is it possible to play a beep/sound when user enters an invalid character ( method 1 )
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutAllowBeep(VARIANT_TRUE);
spMaskEdit1->PutMask(L"`Time: ` 00:00:00");

26:
How can I prevent showing the field's content menu when the user right clicks the control ( method 2 )
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L";;;nocontext");
spMaskEdit1->PutText(L"text");

25:
How can I prevent showing the field's content menu when the user right clicks the control ( method 1 )
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutAllowContextMenu(VARIANT_FALSE);
spMaskEdit1->PutText(L"text");

24:
Is it possible to let user choose the inserting mode, when he presses Insert key ( method 2.2 )
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"00:00;;;inserttype,overtype");
spMaskEdit1->PutText(L"12:3");

23:
Is it possible to let user choose the inserting mode, when he presses Insert key ( method 2.1 )
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"00:00;;;overtype,inserttype");
spMaskEdit1->PutText(L"12:3");

22:
Is it possible to let user choose the inserting mode, when he presses Insert key ( method 1 )
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"00:00");
spMaskEdit1->PutText(L"12:3");
spMaskEdit1->PutAllowToggleInsertMode(VARIANT_TRUE);
spMaskEdit1->PutInsertMode(EXMASKEDITLib::exEditOvertypeMode);

21:
Does your control support overtype mode ( method 2 )

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"00:00;;;overtype");
spMaskEdit1->PutText(L"12:3");

20:
Does your control support overtype mode ( method 1 )

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutInsertMode(EXMASKEDITLib::exEditOvertypeMode);
spMaskEdit1->PutMask(L"00:00");
spMaskEdit1->PutText(L"12:3");

19:
How can I change the colors to show a read only field

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutForeColorReadOnly(RGB(255,255,255));
spMaskEdit1->PutBackColorReadOnly(RGB(0,0,0));
spMaskEdit1->PutReadOnly(VARIANT_TRUE);
spMaskEdit1->PutText(L"text");

18:
How can I lock or make read only the field (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutReadOnly(VARIANT_TRUE);
spMaskEdit1->PutText(L"text");

17:
How can I lock or make read only the field (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"*;;;readonly");
spMaskEdit1->PutText(L"text");

16:
Is it possible to mask a password field (method 2)
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutRight(VARIANT_TRUE);
spMaskEdit1->PutText(L"text");

15:
Is it possible to right align field (method 1)
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"*;;;right");
spMaskEdit1->PutText(L"text");

14:
Is it possible to mask a password field (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutPassword(VARIANT_TRUE);
spMaskEdit1->PutText(L"password");

13:
Is it possible to mask a password field (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"*;;;password");
spMaskEdit1->PutText(L"password");

12:
How can I mask an integer within a range

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"{1950,2050}");
spMaskEdit1->PutText(L"1979");

11:
How can I mask an integer value with no grouping support

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L";;;float,grouping=,decimal=,digits=0,select=1");
spMaskEdit1->PutText(L"12345.67");

10:
How can I mask an integer value (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"-#####;;;float,select=1");
spMaskEdit1->PutText(L"-12345.67");

9:
How can I mask an integer value (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L";;;float,decimal=,digits=0,select=1");
spMaskEdit1->PutText(L"12345.67");

8:
How can I specify the number of digits when masking a float (method 2)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L"###.#;;;float,select=1");
spMaskEdit1->PutText(L"12345.67");

7:
How can I specify the number of digits when masking a float (method 1)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L";;;float,select=1,digits=1");
spMaskEdit1->PutText(L"12345.67");

6:
How do I mask a positive, floating point numbers support, including grouping of digits

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L";;;float,select=1,negative=0");
spMaskEdit1->PutText(L"-12345.67");

5:
How do I mask a floating point numbers support, with a different decimal character

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L";;;float,grouping= ,decimal=\\,,select=1");
spMaskEdit1->PutText(L"12345,67");

4:
How do I mask a floating point numbers support, excluding grouping of digits

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L";;;float,grouping=,select=1");
spMaskEdit1->PutText(L"12345.67");

3:
How do I mask a floating point numbers support, including grouping of digits

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutMask(L";;;float,select=1");
spMaskEdit1->PutText(L"12345.67");

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

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutForeColor(RGB(255,0,0));
spMaskEdit1->PutText(L"aka");

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

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library'

	#import <MaskEdit.dll>
	using namespace EXMASKEDITLib;
*/
EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown();
spMaskEdit1->PutBackColor(RGB(255,0,0));