[comp.windows.ms.programmer] Input verification using edit controls...

gardner@iccgcc.decnet.ab.com (11/22/90)

I am designing an accounting package which uses an edit control in a dialog
box to get phone numbers, ssn numbers, dates, etc.  I have been scanning 
through my manuals and all the magazines I could find to see how WINDOWS could
verify that the user has entered the data in a correct format.  What I would
like to have is an edit control with a visible "mask" which the user just
fills in... i.e.

			+-------------------------------+
			|	                        |
			|        +--------------+       |
			| PHONE: |(   )    -    |       |
			|        +--------------+       |
                        |                               |
                        +-------------------------------+

where the box enclosing the phone number is an edit control.

Are there some generic formatting characters that allow input verification
using edit controls?  Do I have to resort to writing my own custom control
class to do input verification and formatting?

I'd appreciate any help!

				Thanks,
					Mike Gardner
					Summit Software Engineering