cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
kleinwgolden
Level 3

What is ES_WANTRETURN in Other Windows Styles used for?

Hi;

Using IS 2009 Prem Edit SP 2 and an Install Project project (not MSI).

I created a custom dialog, placed an edit field on the dialog. In Other
Windows Styles, I checked ES_LEFT, ES_NUMBER, ES_WANTRETURN. I
see IS forcing only numeric input, but I thought ES_WANTRETURN would
force user to enter at least 1 numeric character in the edit field... but
the field can remain untouched and I can click next to get to next dialog.

What is the purpose of ES_WANTRETURN?

Regards,
Bill
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

Please see this MSDN page: http://msdn.microsoft.com/en-us/library/bb775464(VS.85).aspx.

To ensure a field isn't empty, please see (for example) the source for SdRegisterUser or the "Serial Number Validation Sample Project" sample that ships with InstallShield.
0 Kudos
kleinwgolden
Level 3

Thank You Robert!!!
0 Kudos