Click here to Skip to main content
16,017,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionedit box that accepts only 0-9 and "ABCDCDEF" Pin
kerby_arion12-Oct-05 21:53
kerby_arion12-Oct-05 21:53 
AnswerRe: edit box that accepts only 0-9 and "ABCDCDEF" Pin
toxcct12-Oct-05 22:03
toxcct12-Oct-05 22:03 
AnswerRe: edit box that accepts only 0-9 and "ABCDCDEF" Pin
ddmcr12-Oct-05 22:31
ddmcr12-Oct-05 22:31 
GeneralRe: edit box that accepts only 0-9 and "ABCDCDEF" Pin
Trollslayer13-Oct-05 1:20
mentorTrollslayer13-Oct-05 1:20 
GeneralRe: edit box that accepts only 0-9 and "ABCDCDEF" Pin
kerby_arion13-Oct-05 15:41
kerby_arion13-Oct-05 15:41 
GeneralRe: edit box that accepts only 0-9 and "ABCDCDEF" Pin
ThatsAlok13-Oct-05 18:54
ThatsAlok13-Oct-05 18:54 
GeneralRe: edit box that accepts only 0-9 and "ABCDCDEF" Pin
ddmcr13-Oct-05 22:26
ddmcr13-Oct-05 22:26 
GeneralRe: edit box that accepts only 0-9 and "ABCDCDEF" Pin
kerby_arion14-Oct-05 1:41
kerby_arion14-Oct-05 1:41 
i've tried this one it worked:


void CMyEdit::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)<br />
{        <br />
     if(nChar=='A'||nChar=='B'||nChar=='C'<br />
      ||nChar=='D'||isdigit(c)||nChar==VK_BACK)<br />
     {         <br />
       //call base class OnChar() function<br />
         CEdit::OnChar(nChar, nRepCnt, nFlags);	}}



krby_xtrmSmile | :)

A_journey_of_a_thousand_miles_is_started_by_Taking_the_first_step.
Questionsetting a max char length of combo box or and edit control? Pin
kerby_arion12-Oct-05 20:30
kerby_arion12-Oct-05 20:30 
AnswerRe: setting a max char length of combo box or and edit control? Pin
The NULL Developer12-Oct-05 20:48
professionalThe NULL Developer12-Oct-05 20:48 
GeneralRe: setting a max char length of combo box or and edit control? Pin
kerby_arion12-Oct-05 21:32
kerby_arion12-Oct-05 21:32 
GeneralRe: setting a max char length of combo box or and edit control? Pin
kerby_arion12-Oct-05 21:50
kerby_arion12-Oct-05 21:50 
AnswerRe: setting a max char length of combo box or and edit control? Pin
toxcct12-Oct-05 21:27
toxcct12-Oct-05 21:27 
GeneralRe: setting a max char length of combo box or and edit control? Pin
kerby_arion14-Oct-05 1:50
kerby_arion14-Oct-05 1:50 
GeneralRe: setting a max char length of combo box or and edit control? Pin
kerby_arion14-Oct-05 1:52
kerby_arion14-Oct-05 1:52 
Questionini to xml conversion Pin
swaapu12-Oct-05 20:21
swaapu12-Oct-05 20:21 
QuestionUSB drive letter Pin
LiYS12-Oct-05 20:14
LiYS12-Oct-05 20:14 
Questionoleacc.dll &amp; WinNT problem Pin
Mohammad Tarik12-Oct-05 19:33
Mohammad Tarik12-Oct-05 19:33 
Questioninvoking CWnd::SetWindowPos () in COleControl sub-class meber-function takes no effect! Pin
suchuhui12-Oct-05 19:08
suchuhui12-Oct-05 19:08 
Questionhelp me plz????????????????????////// Pin
knowledgelover12-Oct-05 16:10
knowledgelover12-Oct-05 16:10 
AnswerRe: help me plz????????????????????////// Pin
vikas amin12-Oct-05 20:21
vikas amin12-Oct-05 20:21 
AnswerRe: help me plz????????????????????////// Pin
toxcct12-Oct-05 21:16
toxcct12-Oct-05 21:16 
Questionhow dose this happen? need your help Pin
ewighell12-Oct-05 16:01
ewighell12-Oct-05 16:01 
AnswerRe: how dose this happen? need your help Pin
vikas amin12-Oct-05 20:23
vikas amin12-Oct-05 20:23 
GeneralRe: how dose this happen? need your help Pin
ewighell12-Oct-05 23:03
ewighell12-Oct-05 23:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.