Solved

Masked edit control in VC 1.52

Posted on 1997-12-17
3
180 Views
Last Modified: 2013-11-19
How can I implement a masked edit control in VC 1.52 ? What functions need to be overridden in my derived class ? Subclassing ? Help !
0
Comment
Question by:xn12z9i
3 Comments
 
LVL 7

Accepted Solution

by:
galkin earned 100 total points
ID: 1312560
You must overwrite WM_CHAR and WM_KEYDOWN messages.
0
 

Author Comment

by:xn12z9i
ID: 1312561
Why do I need to override WM_KEYDOWN ?  Also, in the handlers for both messages, do I need to worry about the values passed in the nRepCnt and nFlags arguments ?
0
 
LVL 2

Expert Comment

by:SamratAshok
ID: 1312562
How generic you want your mask to be ?
i.e. what type of characters you want to be able to filter out
and do you need to change it at runtime?

Generally it becomes trickier as your options grow
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question