A few days ago, helping colleagues solved a problem, quite fun, please record the problem on blog, this is a request for the UE. When the ccombobo is pulled out of ListBox, pop up a selection window, then select one, display in CCOBOX The approach of colleagues in Edit is to capture the CBN_DropDown notification message of ComboBox's parent window, pop up the selection window in the message response function, and set the strings and selection items for the ComboBox. But a bad phenomenon is because it is dealing with the drop-down message, so the drop-down Listbox is not recovered when the function is over. The start of the practice begins to call ComboBox.sendMessage (CB_Showdropdown, (WPARAM) False, 0) in the end of the notification message response function, but failed, but failed, then try ComboBox.sendMessage (WM_KILLFOCUS) and ComboBox. SendMessage (WM_KEYDOWN, VK_ESCAPE, 0) all failed. Some progress has been made through the above failure, written a simple dialog program to test CCOMBOBOX, found that its listbox is not pulled out in the CBN_DropDown notification message response function, we have issued this when we prepare to drop Listbox. Notify the message, and then notify the message to handle it. Therefore, the functions we recovered in the notification message response function are actually called, and there is no role. So in the test program, processed 1. Call ComboBox.PostMessage (WM_KILLFOCUS) at the end of the message response function, pay attention to PostMessage2. Call ComboBox.sendMessage (CB_Showdropdown, (WPARAM) False, 0) test project in KillFocus is successfully passed, but it is found that the KillFocus message final solution is issued when the selected window is displayed. Very simple, in the response function of the CBN_DropDown notification message, finally add ComboBox.PostMessage (WM_KEYDOWN, VK_ESCAPE, 0)