Solved

Masked edit control in VC 1.52

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Whole sheet autoscrub still needed 19 54
wait notify demo infinite loop 3 148
zeroFront challenge 7 134
My project did see openJDK that I installed. What could be the problem 7 169
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.

739 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