WM_LBUTTONDOWN for edit controls?

  • Thread starter Thread starter sweetjones
  • Start date Start date
  • Tags Tags
    Controls Edit
AI Thread Summary
To set focus to edit control boxes in a Visual Studio 2005 C++ MFC application upon mouse clicks, the WM_LBUTTONDOWN message must be handled. The user has successfully implemented focus changes using the Enter key and is seeking guidance specifically for mouse interactions. Suggestions include posting the question on forums like codeguru.com or codeproject.com for additional insights.
sweetjones
Messages
44
Reaction score
0
Hi, I have 4 edit control boxes that I need to except the WM_LBUTTONDOWN message to set focus to them when clicked with the mouse. I have the setfocus events working perfectly. I even manipulated the OnOK override event with the "Enter" key to go to the next edit control box when pressed and send the SetFocus() to them. I just need to know how to set the focus to the edit control when the edit control is clicked with the mouse? If you need a scenario of the problem I would be more than happy to give one. I am using VS2005 C++ and MFC. Thanx In Advance!
 
Technology news on Phys.org
I suggest
you can go to the codeguru.com or codeproject.com to post these question on their forums.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top