B
Bubu
Hello there!
I'm developing Office COM addin for Word, PP, and Excel. I use
C++/ATL 7 and _IDTExtensibility2 stuff. My problem is how to handle
click events from built in buttons and commandbars , for example I
would like to handle click from "Document Map" button on Standard
command bar. I thought that there is CommandBar onlcick event - alas
there is no one. I have no problem to handle events from my own-created
buttons. I use IDispEventSimpleImpl<id ,CConnect
,&__uuidof(Office::_CommandBarButtonEvents) and
SINK_ENTRY_INFO and
CommandButtonXXXXeEvents:ispEventAdvise((IDispatch*)myButton)
and define my own event handler function. I tried get specific built
in button and subscribe to its event source in same manner
CommandButtonXXXXeEvents:ispEventAdvise , however I get
E_NOINTERFACE error.
May be somebody knows how to handle click from Line color dialog - this
nice popup dialog form Drawing commandbar? There is a color palette
there with small colored rectangles.
There is nothing in MSDN about this problem. Any input or/and ideas
will be highly appreciated.
Thanks David.
I'm developing Office COM addin for Word, PP, and Excel. I use
C++/ATL 7 and _IDTExtensibility2 stuff. My problem is how to handle
click events from built in buttons and commandbars , for example I
would like to handle click from "Document Map" button on Standard
command bar. I thought that there is CommandBar onlcick event - alas
there is no one. I have no problem to handle events from my own-created
buttons. I use IDispEventSimpleImpl<id ,CConnect
,&__uuidof(Office::_CommandBarButtonEvents) and
SINK_ENTRY_INFO and
CommandButtonXXXXeEvents:ispEventAdvise((IDispatch*)myButton)
and define my own event handler function. I tried get specific built
in button and subscribe to its event source in same manner
CommandButtonXXXXeEvents:ispEventAdvise , however I get
E_NOINTERFACE error.
May be somebody knows how to handle click from Line color dialog - this
nice popup dialog form Drawing commandbar? There is a color palette
there with small colored rectangles.
There is nothing in MSDN about this problem. Any input or/and ideas
will be highly appreciated.
Thanks David.