Hello,
I created a simple AxctiveX control which would change its color in response to popup menu. I dynamically created a menu in the function
OnContextMenu
of the control. The problem is, if i call
TrackPopupMenu()
, passing '
this
' as a
Cwnd*
, the popup commands are not enabled. Can someone please explain where I am going wrong? Is there something in the implementation of
COleControl
that overrides the behavior of
CWnd
that allows a Popup to function? If so - can i change it?
I am using VC 2008
Thanks in advance to anyone who can help ...
Pani