CCombobox painting issue
In a开发者_运维技巧n owner draw ccombobobox, the text in the combo edit remains selected even the focus is on some other control. I have subclassed the combo edit and list box.
Can anyone suggest what probably can be the reason for this.. any hint is much appreciated
Are you handling the CBN_KILLFOCUS message? One possible solution is to handle this message and clear the selection in the handler - use SetCurSel(-1).
It's worth taking a look at http://msdn.microsoft.com/en-us/library/bb775793%28v=vs.85%29.aspx to get a proper idea of the order that the notification messages are sent.
精彩评论