problem in handling more than one button in a COm addin for Word

H

hamidC++

I have developed a COM addin in visual C++ for office Word which creates a
toolbar with two button on it, but I don't know how to handle more than one
button events. The problem is that my addin runs the same code for the click
of any of the two buttons.
The DISPID dispidMember (first input) of my class's Invoke() function is 1,
independent of which button has been clicked.
 
Top