Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi every one can any one tell me how to set text for mask edit control, i am using mask edit control for date.i have mask with ##/##/#### and ##-###-##.i also want to set mask edit control blank to give chance to write date again after i click a push button .
Posted

1 solution

A possible solution
could be a CStatic derived control on your form (view),

that activates a CDateTimeCtrl derived control
on its (of CStatic) bounds, by a mouse click.

The second control could react to the Enter/Del/Esc/KillFocus events
with the hiding of itself and the notifications of the first control
to set a new text... :)
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900