Solved

Masked edit control in VC 1.52

Posted on 1997-12-17
3
181 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

749 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