?
Solved

Masked edit control in VC 1.52

Posted on 1997-12-17
3
Medium Priority
?
184 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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 tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month12 days, 18 hours left to enroll

777 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