MFC Control Events Caught in VB Program - Weird Behaviour 
Author Message
 MFC Control Events Caught in VB Program - Weird Behaviour

Hi All,

I have written an MFC-based ActiveX control(lets call is ControlA)
which is being used within a VB ActiveX Control (lets call it
ControlB).  I am experiencing a weird behaviour when I catch a
particular event in ControlB and attempt to display a modal form.

ControlA raises an event under certain circumstances in the LButtonUp
event.  I catch this event in Control B and attempt to display a modal
form using a call similar to " vbModal".  However,
even though the apparently modal form is displayed, ControlA still
received MouseMove events and I can even click on it again and cause a
second "Modal" dialog to be displayed by ControlB!!  However, if I
display a messagebox instead of my custom dialog, everything works as

Any ideas why displaying a form modally does not prevent me from
interacting with an underlying control as expected?  Any ideas as to
how I work around this issue?

Thanks a lot,

Fri, 16 Dec 2005 10:00:05 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Question: Catching errors from a VB ActiveX control in Visual C++ using MFC

2. Weird event behaviour - is it a bug?

3. Erratic behaviour of VB application while calling MFC dll

4. ?? Weird behaviour of control arrays

5. Rich Text Box control weird behaviour when ADO.

6. Weird behaviour in a vb6 app using IE Control

7. Weird VB behaviour.

8. Catching events fired by OLE control in Excel'95 VB

9. Catching frame events from VB6 program

10. Strange control event behaviour

11. Strange control event behaviour

12. Weird space bar behaviour in modules


Powered by phpBB® Forum Software