HeaderPane
Main
Hide

SftMask/DLL 7.0 - Masked Edit Control

Share Link
Print

IsValid

Returns whether the masked edit control's contents are valid.

C

BOOL SftMask_IsValid(HWND hwndCtl);

C++

BOOL CSftMask::IsValid() const;

Parameters

hwndCtl

The window handle of the masked edit control.

Returns

The return value is TRUE if the control's contents are valid.

Comments

The contents are validated against the edit mask, the fAllowEmpty / fAllowEmptyWithoutMask fields, date ranges and the application's custom validation (NM_SFTMASK_CUSTOMVALIDATION notification). No error message is displayed - use IsValidWithMsg to display a suitable error message.

Validation should typically take place in response to the user clicking on an OK, Apply or Save button, not when the control loses the input focus (see Input Validation).

See Also IsValidWithMsg | IsEmpty | Input Validation


Last Updated 08/30/2026 - (email)
© 2026 Softel vdm, Inc.