Well, I've never seen that happen in any of the addin I've worked on. As I
said, I don't do C++ but I've never seen it in any VB6, C# or VB.NET addins.
I'd still think it has to be something in how you're handling the code.
About the only thing I can think of is to test the scenario on a sample
addin written using C++, I think you can find one or two at
www.outlookcode.com.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> Hello Ken,
> Yes, the Explorer has the focus and the button is valid.
> The same problem also happen when I set an icon for the button
> (PutPicture).
MON205 - 11 May 2008 08:44 GMT
Thank you Ken.
I'll try doing that.
> Well, I've never seen that happen in any of the addin I've worked on. As I
> said, I don't do C++ but I've never seen it in any VB6, C# or VB.NET addins.
[quoted text clipped - 8 lines]
> > The same problem also happen when I set an icon for the button
> > (PutPicture).