Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Thomas Maurer
|
Jan 10, 2006 - 8:54 AM
|
Hello I have placed an ActiveX control within a CExtControlBar. The ActiveX control handles WM_KEYDOWN. Whenever I press an arrow key the control bar steals the focus somehow and the ActiveX control does not get the WM_KEYDOWN. Can I do something about that? Thanks in advance Thomas
|
|
Technical Support
|
Jan 10, 2006 - 11:29 AM
|
We pay careful attention to the details of inserting ActiveX windows into the CExtControlBar windows. The CExtControlBar class completely supports the WF_OLECTLCONTAINER flag in the CWnd::m_nFlags property which allows you to route OLE message pre-translation to be delivered to the particular ActiveX control not depending on how deep it is inside the control bar containers. The CExtControlBar::PreTranslateMessage() invokes the IOleInPlaceActiveObject::TranslateAccelerator() method of the child ActiveX control. So, you should not have any problems with the keyboard processing in ActiveX controls but, of course, only if the each particular ActiveX control is written correctly according to the specifications. We tries some ActiveX controls from our customers, which demonstrated buggy keyboard processing and even resizing, but all the problems were caused by ActiveX controls only. As an example, you can see Internet Explorer windows inside resizable control bars in our samples (ProfStudio, GLViews, and SimpleGrids). We need more information to provide you with a solution. We can test your ActiveX control if you send it to us.
|
|