1

Topic: CMFCMaskedEdit - at click of "mouse" the cursor got on the first character in it?

There is a component of a text box with mask IDC_EDIT1 to which there corresponds a variable m_IDC_EDIT1 type CMFCMaskedEdit. How to make so that at "mouse" click on its left button the cursor in this text box became on the first character in it? It is necessary to create class CMyMFCMaskedEdit which is offspring of class CMFCMaskedEdit. But what functions should be redefined and what it is necessary to write in the redefinition code?

2

Re: CMFCMaskedEdit - at click of "mouse" the cursor got on the first character in it?

Hello, RussianFellow, you wrote: RF> There is a component of a text box with mask IDC_EDIT1 to which there corresponds a variable m_IDC_EDIT1 type CMFCMaskedEdit. RF> How to make so that at "mouse" click on its left button the cursor in this text box became on the first character in it? RF> It is necessary to create class CMyMFCMaskedEdit which is offspring of class CMFCMaskedEdit. But what functions should be redefined and what it is necessary to write in the redefinition code? I think, to add the output agent of event EN_SETFOCUS enough and inside to cause CEdit:: SetSel (0, 0);