Click here to Skip to main content
15,887,434 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a CMFCToolBarComboBoxButton, which is exhibiting slightly weird behaviour. On occasions, when the layout of the window is changed, the comboBox edit field loses the ability to edit, i.e., when the focus is placed on the edit filed of the combo box, the cursor is there, but it fails to accept alphabets or numbers, however, it can accept characters like '/', ';' and other such. I am not sure why it exhibits this behaviour.

This only happens once the layout is adjusted. If the edit area were to become disabled, I could check for something (though I have checked, and the EnableWindow(true) is applied). However, it does accept characters outside the alphabets or numbers.

Weirdly enough, if the focus is taken away from the layout entirely, like the window is minimized or maximized, or if another dialog box is opened from the layout, then it becomes activate, i.e., accepts characters again..

What could be the issue?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900