R
ryotyankou via OfficeKB.com
Thanks to Ken Slovak, my toolbar problem were resolved, Thanks him very much
again.
But now i meet another problem:
While use word as editor, i couldn't find encrypt and sign button at all. My
purpose is to make my created button keep same state as encrypt or sign, when
sign is pressed, my button is down, vice versa. So my thought is catch click
event for the two button, while word is NOT editor, i can find the buttons
and DispEventAdvise on them. Another solution i tried is, Enum all windows,
to find the button's window handle. I use SPY++ get the handle for toolbar
they docked. EnumChildWindow return error code "invalid handle". and i get
the toolbar's parent handle is ok, and the result is What handle i get from
toolbar's parent is the same i saw in SPY++, so i think the buttons may be
drawed by code not real button. So any suggestions or tips or point out my
errors? Thanks in advance.
In a word, i want to keep my buttons' state as the same with outlook's
encrypt or sign button.Thank you again.
again.
But now i meet another problem:
While use word as editor, i couldn't find encrypt and sign button at all. My
purpose is to make my created button keep same state as encrypt or sign, when
sign is pressed, my button is down, vice versa. So my thought is catch click
event for the two button, while word is NOT editor, i can find the buttons
and DispEventAdvise on them. Another solution i tried is, Enum all windows,
to find the button's window handle. I use SPY++ get the handle for toolbar
they docked. EnumChildWindow return error code "invalid handle". and i get
the toolbar's parent handle is ok, and the result is What handle i get from
toolbar's parent is the same i saw in SPY++, so i think the buttons may be
drawed by code not real button. So any suggestions or tips or point out my
errors? Thanks in advance.
In a word, i want to keep my buttons' state as the same with outlook's
encrypt or sign button.Thank you again.