HeaderPane
Main
Hide

SftMask/DLL 7.0 - Masked Edit Control

Share Link
Print

IsValidWithMsg

Validates the masked edit control's contents, displaying a suitable error message if invalid.

C

BOOL SftMask_IsValid_WithMsg(HWND hwndCtl);

C++

BOOL CSftMask::IsValidWithMsg();

Parameters

hwndCtl

The window handle of the masked edit control.

Returns

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

Comments

If the contents are invalid, an error message is displayed based on the lpszMsgErrorEmpty and lpszMsgErrorInvalid fields (lpszMsgTitle defines the message box title) and the input focus is set to the control.

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 IsValid | Input Validation


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