Setting cursor position in CComboBox
-
I have a CComboBox in a dialog in my app and have a question about setting the cursor in it. I want it to have the same behavior as the search combo box in the toolbar in VC++. When the user clicks the box to set focus, it should highlight the current word and if they click again, the cursor is positioned at the end of the word. Right now, no matter how many times or where I click the whole word is always highlighted. Thanks!
-
I have a CComboBox in a dialog in my app and have a question about setting the cursor in it. I want it to have the same behavior as the search combo box in the toolbar in VC++. When the user clicks the box to set focus, it should highlight the current word and if they click again, the cursor is positioned at the end of the word. Right now, no matter how many times or where I click the whole word is always highlighted. Thanks!
The Lady of Shallots wrote: When the user clicks the box to set focus, it should highlight the current word and if they click again, the cursor is positioned at the end of the word. Um, isn't this the default action of a CComboBox? I made a quick MFC app and added one and this is how mine acted.
Nick Parker
You see the Standards change. - Fellow co-worker
-
The Lady of Shallots wrote: When the user clicks the box to set focus, it should highlight the current word and if they click again, the cursor is positioned at the end of the word. Um, isn't this the default action of a CComboBox? I made a quick MFC app and added one and this is how mine acted.
Nick Parker
You see the Standards change. - Fellow co-worker
Hmmm... maybe it is and I'm messing it up some how because I am overriding some windows messages and setting focus myself in some places, I will look into that. Thanks!