Get a specifc button Handle inside ribbon
I don't think the ribbon exposes handles to the world, so I think you are
going to fail in this approach.
Why not just change the code inside the callback event to a separate macro,
call the macro from within the callback, and also where you need it.
HTH
Bob
"Sink0" wrote in message
...
Hi,
Im trying to make a program that clicks on a specific button inside a
specif
ribbon. I think i got use sendMessage to complete this task but first i
need
to find the handle of the button. So far i can get the handle oh the excel
and then i used EnumChild Windows to find childs handles. But looking at
the
child texts i cant get anything thats looks with a the ribbon or the
button.
Can some one helpme? Should i look inside an specif child to find the
ribbon
and then inside the ribbon to find the button? if yes which one? Thnaks
Sink
|