• Subject: Re: Icons disapear from a CommanBar
  • Author: Jialiang Ge [MSFT]
  • Date: 29 May
  • References: 1
Good morning, Thomas. Welcome to office.developer.com.add_ins newsgroup! My
name is Jialiang Ge [MSFT].



I once handled a very similar issue, where a customer said his
CommandBarButton icon cannot be shown only in Outlook 2000. That problem
turned out to be caused by the code:

HBITMAP hSrcBmp = LoadBitmap(AfxGetResourceHandle(),

MAKEINTRESOURCE(IDB_BITMAP1));

The method LoadBitmap has been superseded by the LoadImage function because
it is incompatible with some device context. Thus, the resolution was to
replace the line with:

HBITMAP hSrcBmp = (HBITMAP)::LoadImage(GetModuleHandle(NULL),

MAKEINTRESOURCE(IDB_BITMAP1), IMAGE_BITMAP,0,0,LR_CREATEDIBSECTION);



Thomas, because you did not mention how you loaded the bitmap icon or
provided any code snippet for test, I cannot quickly figure out the reason
for this specific issue. But I suggest you read the above-mentioned thread:

http://office-outlook.com/outlook-forum/index.php/m/209360/#msg_209360



And if the thread does not help, would you please show us some code
snippets? I'd be very happy to test it for you.



Regards,

Jialiang Ge (jialge@online.microsoft.com, remove 'online.')

Microsoft Online Community Support



Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notifications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support

Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support

professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations

that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.



"Minor, Thomas" <Thomas.Minor@newsgroup.nospam> wrote in message
news:u0KhYbNwIHA.1936@TK2MSFTNGP04.phx.gbl...
> Hi all,
>
> I have a problem with an Outllok AddIn.
>
> Our AddIn creates a CommandBar and adds some buttons to it.
> Depending on the context of the user actions (ie which message type is
> highlighted, is a contact highlighted..) some buttons
> are enabled or disabled. This runs flawlessly on most of our customers
> enviroments.
> We now have one customer where the following problems occur:
>
> On some or most buttons the icons are missing. The button is there and can
> be used, but there is no icon.
> We have a 'restore Toolbar' option in our settings dialog wich, under the
> hood, removes all buttons from
> the CommandBar and then adds them again. Interstingly, after each hit on
> the restore-button, a different set of
> Icons is displayed on the CommandBar until finally, after a non
> deterministic count of tries, all icons are displayed.
> This ist not quite the way we would like this to function.
>
> The enviroment is Windows Server 2003, Terminal Server Mode, Citrix
> Metaframe and Outlook 2000 SR3
>
> Any hints are strongly appreciated...
>
>
> --Thomas
28 MayIcons disapear from a CommanBar.Minor, Thomas
28 May|- Re: Icons disapear from a CommanBar.<elegaultZZZ@REMOVEZZ...
28 May|  |- Re: Icons disapear from a CommanBar.Ken Slovak - [MVP - O...
29 May|  \ Re: Icons disapear from a CommanBar.Minor, Thomas
28 May|- Re: Icons disapear from a CommanBar.Ken Slovak - [MVP - O...
15 Sep|  \ Re: Icons disapear from a CommanBar.Hichem S
15 Sep|     \ Re: Icons disapear from a CommanBar.Ken Slovak - [MVP - O...
15 Sep|        |- Re: Icons disapear from a CommanBar.Hichem S
16 Oct|        \ Re: Icons disapear from a CommanBar.Minor, Thomas
29 May\ Re: Icons disapear from a CommanBar.Jialiang Ge [MSFT]
29 May   \ Re: Icons disapear from a CommanBar.Jialiang Ge [MSFT]
29 May      \ Re: Icons disapear from a CommanBar.Minor, Thomas
30 May         \ Re: Icons disapear from a CommanBar.Jialiang Ge [MSFT]
02 Jun            \ Re: Icons disapear from a CommanBar.Jialiang Ge [MSFT]
05 Jun               \ Re: Icons disapear from a CommanBar.Minor, Thomas
All times are in (US) Eastern Daylight Time (GMT -4:00)