Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS Tech Support » Exception thrown deep in MFC Collapse All
Subject Author Date
Kevin Murray Jun 3, 2008 - 1:45 PM

We have a dynamic control bar that contains an ActiveX control.  When docked/auto-hide and we size the bar, MFC throws an exception.  Now to see this, you’d have to debug with all exceptions being monitored, because MFC catches the exception in a try/catch block of code.    The exception appears to be triggered by a Prof-UIS call to GetStyle for the ActiveX control, with MFC exclaiming that such a function shouldn’t be used for an ActiveX control (or something similar).


Is there any way to embed the ActiveX in the dynamic control bar to avoid this exception occuring?


Kevin Murray


AGI

Technical Support Jun 5, 2008 - 4:51 AM

The CExtControlBar/CExtDynamicControlBar windows can be used as parent windows for COM controls and we know many real life customer projects which prove this. But some controls may need persistent OLE control containers. A control bar temporarily moves its child window into a auto-hidden window displayed from the auto-hide tabs and some COM controls may not like this. You can create your COM control as a child of some dialog window and insert this dialog window into a control bar.