This question is pending deletion.
I have inherited a simple MFC activeX control that is used on a VB form. To use the contol I have to double-click it -- it doesn't get any OnClick, LButtonDown or SetFocus messages until then. When single-clicked it gets OnDraw and GetControlFlags messages. I want it to activate when clicked the first time. I created new MFC activeX controls thinking I could figure out from them how to fix the original control, but they behave the same way -- I have to double-click them. I then created a new ATL activeX control and it behaves the way I want it to! I tried adding the WS_EX_NOPARENTNOTIFY flag to the MFC control. I also tried using the windowlessActivate and pointerInactive flags as well but they don't seem to change the behavior at all. It does work as I want it to in the activeX control test container. It's driving me nuts. What do I need to do when or after creating an MFC activeX control to get it to get the focus on the first click?