How could I select the content of CEdit control just when I click the text of the CEdit.
I could select the content with this code:
m_ctrlEdit.SetFocus();
m_ctrlEdit.SetSel(0, -1, FALSE);
and i put the code in ON_EN_SETFOCUS message handler, but the code doesn’t work there.
Create a custom CEdit control and in the custom class add the handler OnLButtonDown in that put the following code