How to Monitor Click event of a CommandBarPopup

  • Thread starter Thread starter n777krish
  • Start date Start date
N

n777krish

Hi All,

I am trying to monitor the click event handler of a commandbarpopup on
the standard toolbar.

From reading other posts and some tests I am finding that the
CommandBarPopup does not provide a click event handler i.e. I cannot
declare the CommandBarPopup WithEvents and than monitor a Click as
with other controls.

However, is there any way to retrieve a handle to the CommandBarPopUp?
If I can retrieve a handle to the commandbarpopup I can then try to
sub-class the control and then monitor messages using the windows API.

I can't seem to be able to retrieve the handle using SPY ++ and a
CommanBarPopUp does not have a hwnd property.

All help appreciated.

Neil Goundar.
 
There is no Click event or Expand or whatever event for a CommandBarPopup
and no way that I know of to retrieve a hWnd for that control.
 
Back
Top