I have a main form and non-modal autocomplete form. How can I prevent the autocomplete form from being activated by the user, when the user clicks on the list in the autocomplete form?
So, basically I want the autocomplete form the receive the mouse click message when the users clicks, but to never become active, because it causes problems with a third-party component in the main form over which I have no control.
Override CreateParams method of your form and add WS_EX_NOACTIVATE style to the extended styles.
(code written from memory, might contain typos)