COleControl question

COleControl question

Post by Manickavas » Sun, 07 Aug 2005 23:27:12

Hello there:
I have a control server
class CMyControl : public COleControl

And a client of that control that is CMyClient.

The client and server are connected using connection points
(Advise/UnAdvise). In my CMyControl I don't want to have more than one Sinks
of my events. Therefore on any new request for Advise, I want to
a. Force UnAdvise of any previous connections to my _DMyControlEvents
b. Accept the new Advise

Has anyone attempted anything like these? Any suggestions. Please help.
Thanks in advance

1. COleControl question

2. COleControl::FireEvent is not working for IE7

We have a web-application built using VS2005/VC++. It has an ActiveX control
(OCX) in the UI. When we right click in the activeX it opens a popup box
which shows different menu items to open external URLs. When we click on any
of the menu item nothing is triggering or happening. It works on IE 6.0 but
not on IE 7.0 with Windows Server 2003 sp2 x64 Edition.

It seems the problem is in firing event in afxctl.inl
_AFXCTL_INLINE void COleControl::FireClick()

Can you please suggest what can i do to fix this?

3. InsertItem fails for COleControl subclassing SysListView32

4. How can I PostMessage(WM_USER) to COleControl derived class from a global function?

5. Can't draw bitmap beyond 32767 units in COleControl::OnDraw

6. How to trigger onCreate (COleControl) in Edit-mode Powerpoint

7. COleControl::FireEvent is not working for IE7

8. Tap & hold, MFC and COleControl

9. Windows Handle Map problem using COleControl and COleControlModule.

10. COleControl::GetDC

11. Memory leaks in COleControl

12. COleControl background painting

13. Font selection in COleControl::OnDraw

14. How to trigger onCreate (COleControl) in Edit-mode PowerPoint

15. COleControl and CWnd - Using both - Newbie