Advertisement

07.14.2008 at 11:18PM PDT, ID: 23565128
[x]
Attachment Details

mouse Click event in text box

Asked by tcss in Windows MFC Programming

Hi

User selects field with mouse instead of TAB
Requirements is for fields selected to be highlit so existing information can be replaced and not added to
ie 5 is replaced with 1 instead of becoming 51

How do I detect that the user has clicked on the field to select all of the field with
m_UnitsControl.SetSel(0,-1);

It works if I tab to the field, and the set_focus event is fired.

Start Free Trial
[+][-]07.14.2008 at 11:55PM PDT, ID: 22004633

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 12:11AM PDT, ID: 22004693

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 12:58AM PDT, ID: 22004880

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Windows MFC Programming
Sign Up Now!
Solution Provided By: alb66
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.09.2008 at 11:26AM PDT, ID: 22197137

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08.10.2008 at 05:43AM PDT, ID: 22199441

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906